Bug#639298: live-build: Support Ext4 for binary image types
Package: live-build
Version: 3.0~a24-1ubuntu12
Severity: normal
Tags: patch
Please support ext4 in addition to ext2 and ext3
-- Package-specific info:
-- System Information:
Debian Release: wheezy/sid
APT prefers oneiric-updates
APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric')
Architecture: i386 (i686)
Kernel: Linux 3.0.0-8-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages live-build depends on:
ii debootstrap 1.0.36 Bootstrap a basic Debian system
Versions of packages live-build recommends:
ii cpio 2.11-7ubuntu1 GNU cpio -- a program to manage ar
ii gettext-base 0.18.1.1-3ubuntu1 GNU Internationalization utilities
ii gnu-fdisk 1.2.4-3 Linux fdisk replacement based on l
Versions of packages live-build suggests:
ii dosfstools 3.0.9-1ubuntu3 utilities for making and checking
ii fakeroot 1.17-1 tool for simulating superuser priv
ii genisoimage 9:1.1.11-1ubuntu2 Creates ISO-9660 CD-ROM filesystem
ii memtest86+ 4.20-1ubuntu1 thorough real-mode memory tester
ii mtools 4.0.12-1 Tools for manipulating MSDOS files
ii parted 2.3-6ubuntu1 disk partition manipulator
pn squashfs-tools | mt <none> (no description available)
ii sudo 1.7.4p6-1ubuntu1 Provide limited super user privile
ii syslinux 2:4.04+dfsg-1ubuntu1 collection of boot loaders
ii uuid-runtime 2.19.1-2ubuntu3 runtime components for the Univers
pn win32-loader <none> (no description available)
-- no debconf information
=== modified file 'scripts/build/lb_binary_rootfs'
--- scripts/build/lb_binary_rootfs 2011-06-08 08:07:26 +0000
+++ scripts/build/lb_binary_rootfs 2011-06-29 16:55:50 +0000
@@ -88,7 +88,7 @@
done
case "${LB_CHROOT_FILESYSTEM}" in
- ext2|ext3)
+ ext2|ext3|ext4)
# Checking depends
Check_package chroot/sbin/mkfs.ext2 e2fsprogs
=== modified file 'scripts/build/lb_binary_virtual-hdd'
--- scripts/build/lb_binary_virtual-hdd 2011-03-09 18:20:42 +0000
+++ scripts/build/lb_binary_virtual-hdd 2011-06-29 16:55:50 +0000
@@ -46,8 +46,8 @@
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 @@
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
=== modified file 'scripts/build/lb_config'
--- scripts/build/lb_config 2011-06-13 18:38:44 +0000
+++ scripts/build/lb_config 2011-06-29 16:55:50 +0000
@@ -54,7 +54,7 @@
\t [--checksums md5|sha1|sha256|none]\n\
\t [--compression bzip2|gzip|lzip|none]\n\
\t [--build-with-chroot true|false]\n\
-\t [--chroot-filesystem ext2|ext3|squashfs|plain|jffs2]\n\
+\t [--chroot-filesystem ext2|ext3|ext4|squashfs|plain|jffs2]\n\
\t [--clean\n\
\t [-c|--conffile FILE]\n\
\t [--debconf-frontend dialog|editor|noninteractive|readline]\n\
=== modified file 'scripts/build/lb_source_usb'
--- scripts/build/lb_source_usb 2011-03-09 18:20:42 +0000
+++ scripts/build/lb_source_usb 2011-06-29 16:55:50 +0000
@@ -75,7 +75,7 @@
fi
case "${LB_BINARY_FILESYSTEM}" in
- ext2|ext3)
+ ext2|ext3|ext4)
PARTITION_TYPE="ext2"
;;
@@ -100,7 +100,7 @@
Losetup $FREELO source.img 1
case "${LB_BINARY_FILESYSTEM}" in
- ext2|ext3)
+ ext2|ext3|ext4)
MKFS="${LB_BINARY_FILESYSTEM}"
MKFS_OPTIONS="-L DEBIAN_LIVE -m 0"
;;
=== modified file 'scripts/build/lb_source_virtual-hdd'
--- scripts/build/lb_source_virtual-hdd 2011-03-09 18:20:42 +0000
+++ scripts/build/lb_source_virtual-hdd 2011-06-29 16:55:50 +0000
@@ -54,6 +54,9 @@
ext2|ext3)
Check_package chroot/sbin/mkfs.ext2 e2fsprogs
;;
+ ext4)
+ Check_package chroot/sbin/mkfs.ext4 e2fsprogs
+ ;;
esac
fi
Reply to: