Refactor mkfs handling.
This commit is contained in:
parent
36f737b756
commit
c96228be81
|
@ -141,21 +141,23 @@ Losetup $FREELO chroot/binary.img 1
|
||||||
|
|
||||||
case "${LH_BINARY_FILESYSTEM}" in
|
case "${LH_BINARY_FILESYSTEM}" in
|
||||||
fat16)
|
fat16)
|
||||||
MKFS_OPTIONS="-F 16"
|
MKFS="vfat"
|
||||||
|
MKFS_OPTIONS="-F 16 -n DEBIAN_LIVE"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
fat32)
|
fat32)
|
||||||
MKFS_OPTIONS="-F 32"
|
MKFS="vfat"
|
||||||
|
MKFS_OPTIONS="-F 32 -n DEBIAN_LIVE"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "${LH_CHROOT_BUILD}" in
|
case "${LH_CHROOT_BUILD}" in
|
||||||
enabled)
|
enabled)
|
||||||
Chroot "mkfs.vfat ${MKFS_OPTIONS} -n DEBIAN_LIVE ${FREELO}"
|
Chroot "mkfs.${MKFS} ${MKFS_OPTIONS} ${FREELO}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
disabled)
|
disabled)
|
||||||
mkfs.vfat ${MKFS_OPTIONS} -n DEBIAN_LIVE ${FREELO}
|
mkfs.${MKFS} ${MKFS_OPTIONS} ${FREELO}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue