From 5d2fbf5d5adfd82f59b039d914c09e5dbca8296b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 25 Aug 2011 23:47:30 +0200 Subject: Adding support for ext4 for binary and chroot filesystem, including partial patch from Ben Howard (Closes: #639298). --- scripts/build/lb_source_virtual-hdd | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'scripts/build/lb_source_virtual-hdd') diff --git a/scripts/build/lb_source_virtual-hdd b/scripts/build/lb_source_virtual-hdd index ed3d2cc99..0f5357341 100755 --- a/scripts/build/lb_source_virtual-hdd +++ b/scripts/build/lb_source_virtual-hdd @@ -51,8 +51,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_BINARY_FILESYSTEM} e2fsprogs ;; esac fi @@ -76,24 +76,15 @@ then mv source-virtual.img chroot case "${LB_BINARY_FILESYSTEM}" in - ext2) - Chroot chroot "mkfs.ext2 -F -m 0 source-virtual.img" - ;; - - ext3) - Chroot chroot "mkfs.ext3 -F source-virtual.img" - ;; + ext2|ext3|ext4) + Chroot chroot "mkfs.${LB_BINARY_FILESYSTEM} -F -m 0 source-virtual.img" esac mv chroot/source-virtual.img ./ else case "${LB_BINARY_FILESYSTEM}" in - ext2) - mkfs.ext2 -F -m 0 source-virtual.img - ;; - - ext3) - mkfs.ext3 -F -m 0 source-virtual.img + ext2|ext3|ext4) + mkfs.${LB_BINARY_FILESYSTEM} -F -m 0 source-virtual.img ;; esac fi -- cgit v1.2.3