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_binary_usb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts/build/lb_binary_usb') diff --git a/scripts/build/lb_binary_usb b/scripts/build/lb_binary_usb index 96feee499..228827dd0 100755 --- a/scripts/build/lb_binary_usb +++ b/scripts/build/lb_binary_usb @@ -51,12 +51,12 @@ Check_package chroot/sbin/parted parted if [ "${LB_ARCHITECTURES}" = "sparc" ] 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 ;; *) - Echo_error "Sparc only supports booting from ext2, ext3 (or ufs)" + Echo_error "Sparc only supports booting from ext2, ext3, ext4 or ufs." exit 1 ;; esac @@ -128,7 +128,7 @@ case "${LB_ARCHITECTURES}" in esac case "${LB_BINARY_FILESYSTEM}" in - ext2|ext3) + ext2|ext3|ext4) PARTITION_TYPE="ext2" ;; @@ -170,7 +170,7 @@ FREELO="$(${LB_LOSETUP} -f)" Losetup $FREELO chroot/binary.img 1 case "${LB_BINARY_FILESYSTEM}" in - ext2|ext3) + ext2|ext3|ext4) MKFS="${LB_BINARY_FILESYSTEM}" MKFS_OPTIONS="-L DEBIAN_LIVE -m 0" ;; -- cgit v1.2.3