Refactor mkfs handling.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
This commit is contained in:
Chris Lamb 2008-06-15 16:25:34 +01:00
parent d522b02fc1
commit 343497ad98
1 changed files with 6 additions and 4 deletions

View File

@ -141,21 +141,23 @@ Losetup $FREELO chroot/binary.img 1
case "${LH_BINARY_FILESYSTEM}" in
fat16)
MKFS_OPTIONS="-F 16"
MKFS="vfat"
MKFS_OPTIONS="-F 16 -n DEBIAN_LIVE"
;;
fat32)
MKFS_OPTIONS="-F 32"
MKFS="vfat"
MKFS_OPTIONS="-F 32 -n DEBIAN_LIVE"
;;
esac
case "${LH_CHROOT_BUILD}" in
enabled)
Chroot "mkfs.vfat ${MKFS_OPTIONS} -n DEBIAN_LIVE ${FREELO}"
Chroot "mkfs.${MKFS} ${MKFS_OPTIONS} ${FREELO}"
;;
disabled)
mkfs.vfat ${MKFS_OPTIONS} -n DEBIAN_LIVE ${FREELO}
mkfs.${MKFS} ${MKFS_OPTIONS} ${FREELO}
;;
esac