build/cdrom: prettier print
This commit is contained in:
parent
dbe29b5a31
commit
789d95217b
|
@ -48,17 +48,9 @@ setup_extras ${STAGEDIR}/work ${SELF}
|
|||
setup_mtree ${STAGEDIR}/work
|
||||
setup_entropy ${STAGEDIR}/work
|
||||
|
||||
echo -n ">>> Building cdrom image... "
|
||||
|
||||
# must be upper case:
|
||||
LABEL=$(echo ${LABEL} | tr '[:lower:]' '[:upper:]')
|
||||
|
||||
cat > ${STAGEDIR}/work/etc/fstab << EOF
|
||||
# Device Mountpoint FStype Options Dump Pass #
|
||||
/dev/iso9660/${LABEL} / cd9660 ro 0 0
|
||||
tmpfs /tmp tmpfs rw,mode=01777 0 0
|
||||
EOF
|
||||
|
||||
UEFIBOOT=
|
||||
if [ ${ARCH} = "amd64" -a -n "${PRODUCT_UEFI}" ]; then
|
||||
dd if=/dev/zero of=${STAGEDIR}/efiboot.img bs=4k count=200
|
||||
|
@ -75,6 +67,14 @@ if [ ${ARCH} = "amd64" -a -n "${PRODUCT_UEFI}" ]; then
|
|||
UEFIBOOT="${UEFIBOOT} -o no-emul-boot"
|
||||
fi
|
||||
|
||||
echo -n ">>> Building cdrom image... "
|
||||
|
||||
cat > ${STAGEDIR}/work/etc/fstab << EOF
|
||||
# Device Mountpoint FStype Options Dump Pass #
|
||||
/dev/iso9660/${LABEL} / cd9660 ro 0 0
|
||||
tmpfs /tmp tmpfs rw,mode=01777 0 0
|
||||
EOF
|
||||
|
||||
makefs -t cd9660 ${UEFIBOOT} \
|
||||
-o 'bootimage=i386;'"${STAGEDIR}"'/work/boot/cdboot' -o no-emul-boot \
|
||||
-o label=${LABEL} -o rockridge ${CDROM} ${STAGEDIR}/work
|
||||
|
|
Loading…
Reference in New Issue