diff options
author | Daniel Baumann <daniel@debian.org> | 2011-08-25 23:47:30 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-08-25 23:47:30 +0200 |
commit | 5d2fbf5d5adfd82f59b039d914c09e5dbca8296b (patch) | |
tree | 5b3558887cd68edba4f157c221dc9e5965f1d592 /scripts/build/lb_binary_usb | |
parent | 40a843bddd72c5222ee5d0983548c63b524326de (diff) | |
download | vyos-live-build-5d2fbf5d5adfd82f59b039d914c09e5dbca8296b.tar.gz vyos-live-build-5d2fbf5d5adfd82f59b039d914c09e5dbca8296b.zip |
Adding support for ext4 for binary and chroot filesystem, including partial patch from Ben Howard <ben.howard@canonical.com> (Closes: #639298).
Diffstat (limited to 'scripts/build/lb_binary_usb')
-rwxr-xr-x | scripts/build/lb_binary_usb | 10 |
1 files changed, 5 insertions, 5 deletions
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" ;; |