diff options
Diffstat (limited to 'scripts/build/lb_binary_virtual-hdd')
-rwxr-xr-x | scripts/build/lb_binary_virtual-hdd | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/scripts/build/lb_binary_virtual-hdd b/scripts/build/lb_binary_virtual-hdd index d24f9f329..f04866309 100755 --- a/scripts/build/lb_binary_virtual-hdd +++ b/scripts/build/lb_binary_virtual-hdd @@ -46,8 +46,8 @@ Create_lockfile .lock if [ "${LB_BUILD_WITH_CHROOT}" = "true" ] then case "${LB_BINARY_FILESYSTEM}" in - ext2|ext3) - Check_package chroot/sbin/mkfs.ext2 e2fsprogs + ext2|ext3|ext4) + Check_package chroot/sbin/mkfs.${LB_BINARTY_FILESYSTEM} e2fsprogs ;; esac fi @@ -79,24 +79,16 @@ then fi case "${LB_BINARY_FILESYSTEM}" in - ext2) - Chroot chroot "mkfs.ext2 -F binary-virtual.img" - ;; - - ext3) - Chroot chroot "mkfs.ext3 -F binary-virtual.img" + ext2|ext3|ext4) + Chroot chroot "mkfs.${LB_BINARY_FILESYSTEM} -F binary-virtual.img" ;; esac mv chroot/binary-virtual.img ./ else case "${LB_BINARY_FILESYSTEM}" in - ext2) - mkfs.ext2 -F binary-virtual.img - ;; - - ext3) - mkfs.ext3 -F binary-virtual.img + ext2|ext3|ext4) + mkfs.${LB_BINARTY_FILESYSTEM} . -F binary-virtual.img ;; esac fi |