diff -Nru live-build-3.0~a57/debian/changelog live-build-3.0~a57/debian/changelog --- live-build-3.0~a57/debian/changelog 2016-01-15 17:03:52.000000000 -0600 +++ live-build-3.0~a57/debian/changelog 2017-05-08 21:34:47.000000000 -0500 @@ -1,3 +1,17 @@ +live-build (3.0~a57-1ubuntu11.4) trusty; urgency=medium + + * Add support for the ubuntu-cpc project (LP: #1693018) + + [ Daniel Watkins ] + * debian/patches/ubuntu-ppc64el-support.patch: + - Handle different /boot kernel naming on ppc64el, matching powerpc + * ubuntu-label-disks.patch + - Apply LB_HDD_LABEL to disk images produced by lb_binary_rootfs + * ubuntu-chroot-fs-opts.patch + - Add options for tuning disk images produced by lb_binary_rootfs + + -- Robert C Jennings Mon, 09 May 2017 02:34:47 +0000 + live-build (3.0~a57-1ubuntu11.3) trusty; urgency=medium * ubuntu-chroot_headers_tidy.patch: Adjust for both 3.x and 4.x kernels. diff -Nru live-build-3.0~a57/debian/patches/series live-build-3.0~a57/debian/patches/series --- live-build-3.0~a57/debian/patches/series 2015-07-22 10:40:14.000000000 -0500 +++ live-build-3.0~a57/debian/patches/series 2017-05-08 21:34:47.000000000 -0500 @@ -23,3 +23,5 @@ dpkg-divert-initctl dpkg-divert-others upstart-not-in-bootstrap +ubuntu-label-disks.patch +ubuntu-chroot-fs-opts.patch diff -Nru live-build-3.0~a57/debian/patches/ubuntu-chroot-fs-opts.patch live-build-3.0~a57/debian/patches/ubuntu-chroot-fs-opts.patch --- live-build-3.0~a57/debian/patches/ubuntu-chroot-fs-opts.patch 1969-12-31 18:00:00.000000000 -0600 +++ live-build-3.0~a57/debian/patches/ubuntu-chroot-fs-opts.patch 2017-05-08 21:32:14.000000000 -0500 @@ -0,0 +1,99 @@ +Description: Add options to tune the EXT FS produced in lb_binary_rootfs + Adds --ext-block-size, --ext-resize-blocks and --ext-fudge-factor to + enable building filesystem images with 4K blocks that can be + online-resized to a configurable length. +Author: Daniel Watkins + +--- a/scripts/build/lb_binary_rootfs ++++ b/scripts/build/lb_binary_rootfs +@@ -129,7 +129,7 @@ + FAKE_MTAB="true" + fi + +- Chroot chroot "mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -i 8192 -m 0 -L ${LB_HDD_LABEL} filesystem.${LB_CHROOT_FILESYSTEM}" ++ Chroot chroot "mkfs.${LB_CHROOT_FILESYSTEM} -F -b ${LB_EXT_BLOCKSIZE:-1024} -i 8192 -m 0 -L ${LB_HDD_LABEL} ${LB_EXT_RESIZEBLOCKS:+-E resize=${LB_EXT_RESIZEBLOCKS}} filesystem.${LB_CHROOT_FILESYSTEM}" + + mkdir -p filesystem.tmp + ${LB_ROOT_COMMAND} mount -o loop chroot/filesystem.${LB_CHROOT_FILESYSTEM} filesystem.tmp +@@ -199,7 +199,7 @@ + + false) + dd if=/dev/zero of=binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM} bs=1024k count=0 seek=${REAL_DIM} +- mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -i 8192 -m 0 -L ${LB_HDD_LABEL} binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM} ++ mkfs.${LB_CHROOT_FILESYSTEM} -F -b ${LB_EXT_BLOCKSIZE:-1024} -i 8192 -m 0 -L ${LB_HDD_LABEL} ${LB_EXT_RESIZEBLOCKS:+-E resize=${LB_EXT_RESIZEBLOCKS}} binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM} + + mkdir -p filesystem.tmp + ${LB_ROOT_COMMAND} mount -o loop binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM} filesystem.tmp +--- a/scripts/build/lb_config ++++ b/scripts/build/lb_config +@@ -57,6 +57,9 @@ + \t [--debian-installer-gui true|false]\n\ + \t [--debug]\n\ + \t [-d|--distribution CODENAME]\n\ ++\t [--ext-block-size 1024|2048|4096]\n\ ++\t [--ext-resize-blocks N]\n\ ++\t [--ext-fudge-factor PERCENTAGE]\n\ + \t [--parent-distribution CODENAME]\n\ + \t [--parent-debian-installer-distribution CODENAME]\n\ + \t [--dump]\n\ +@@ -157,7 +160,7 @@ + apt-indices:,bootappend-install:,bootappend-live:,bootappend-failsafe:,bootloader:,checksums:,compression:,config:,zsync:,build-with-chroot:, + debian-installer:,debian-installer-distribution:,debian-installer-preseedfile:,debian-installer-gui:, + grub-splash:,isohybrid-options:,hdd-label:,hdd-size:,iso-application:,iso-preparer:,iso-publisher:, +- iso-volume:,jffs2-eraseblock:,memtest:,net-root-filesystem:,net-root-mountoptions:, ++ iso-volume:,jffs2-eraseblock:,ext-block-size:,ext-resize-blocks:,ext-fudge-factor:,memtest:,net-root-filesystem:,net-root-mountoptions:, + net-root-path:,net-root-server:,net-cow-filesystem:,net-cow-mountoptions:,net-cow-path:, + net-cow-server:,net-tarball:,firmware-binary:,firmware-chroot:,swap-file-path:,swap-file-size:,syslinux-theme:, + win32-loader:,source:,source-images:,breakpoints,conffile:,debug,force, +@@ -683,6 +686,21 @@ + shift 2 + ;; + ++ --ext-block-size) ++ LB_EXT_BLOCKSIZE="${2}" ++ shift 2 ++ ;; ++ ++ --ext-resize-blocks) ++ LB_EXT_RESIZEBLOCKS="${2}" ++ shift 2 ++ ;; ++ ++ --ext-fudge-factor) ++ LB_EXT_FUDGEFACTOR="${2}" ++ shift 2 ++ ;; ++ + --jffs2-eraseblock) + LB_JFFS2_ERASEBLOCK="${2}" + shift 2 +@@ -1392,6 +1410,18 @@ + # (Default: ${LB_ISO_VOLUME}) + LB_ISO_VOLUME="${LB_ISO_VOLUME}" + ++# \$LB_EXT_BLOCKSIZE: set EXT block size ++# (Default: unset) ++LB_EXT_BLOCKSIZE="${LB_EXT_BLOCKSIZE}" ++ ++# \$LB_EXT_RESIZEBLOCKS: set EXT resize parameter ++# (Default: unset) ++LB_EXT_RESIZEBLOCKS="${LB_EXT_RESIZEBLOCKS}" ++ ++# \$LB_EXT_FUDGEFACTOR: set extra size of EXT images (in %) ++# (Default: unset) ++LB_EXT_FUDGEFACTOR="${LB_EXT_FUDGEFACTOR}" ++ + # \$LB_JFFS2_ERASEBLOCK: set jffs2 eraseblock size + # (Default: unset) + LB_JFFS2_ERASEBLOCK="" +--- a/functions/losetup.sh ++++ b/functions/losetup.sh +@@ -68,7 +68,7 @@ + + case "${FILESYSTEM}" in + ext2|ext3|ext4) +- PERCENT="5" ++ PERCENT="${LB_EXT_FUDGEFACTOR:-5}" + ;; + *) + PERCENT="3" diff -Nru live-build-3.0~a57/debian/patches/ubuntu-label-disks.patch live-build-3.0~a57/debian/patches/ubuntu-label-disks.patch --- live-build-3.0~a57/debian/patches/ubuntu-label-disks.patch 1969-12-31 18:00:00.000000000 -0600 +++ live-build-3.0~a57/debian/patches/ubuntu-label-disks.patch 2017-05-08 21:32:14.000000000 -0500 @@ -0,0 +1,23 @@ +Description: Apply LB_HDD_LABEL to disks produced in lb_binary_rootfs. +Author: Daniel Watkins + +--- live-build-3.0~a57.orig/scripts/build/lb_binary_rootfs ++++ live-build-3.0~a57/scripts/build/lb_binary_rootfs +@@ -129,7 +129,7 @@ case "${LB_CHROOT_FILESYSTEM}" in + FAKE_MTAB="true" + fi + +- Chroot chroot "mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -i 8192 -m 0 filesystem.${LB_CHROOT_FILESYSTEM}" ++ Chroot chroot "mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -i 8192 -m 0 -L ${LB_HDD_LABEL} filesystem.${LB_CHROOT_FILESYSTEM}" + + mkdir -p filesystem.tmp + ${LB_ROOT_COMMAND} mount -o loop chroot/filesystem.${LB_CHROOT_FILESYSTEM} filesystem.tmp +@@ -199,7 +199,7 @@ case "${LB_CHROOT_FILESYSTEM}" in + + false) + dd if=/dev/zero of=binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM} bs=1024k count=0 seek=${REAL_DIM} +- mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -i 8192 -m 0 binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM} ++ mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -i 8192 -m 0 -L ${LB_HDD_LABEL} binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM} + + mkdir -p filesystem.tmp + ${LB_ROOT_COMMAND} mount -o loop binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM} filesystem.tmp diff -Nru live-build-3.0~a57/debian/patches/ubuntu-ppc64el-support.patch live-build-3.0~a57/debian/patches/ubuntu-ppc64el-support.patch --- live-build-3.0~a57/debian/patches/ubuntu-ppc64el-support.patch 2014-01-31 04:34:12.000000000 -0600 +++ live-build-3.0~a57/debian/patches/ubuntu-ppc64el-support.patch 2017-05-08 21:34:47.000000000 -0500 @@ -1,7 +1,8 @@ Description: Add basic ppc64el support Author: Colin Watson +Author: Daniel Watkins Forwarded: no -Last-Update: 2014-01-31 +Last-Update: 2015-10-26 Index: b/functions/defaults.sh =================================================================== @@ -18,3 +19,29 @@ s390) case "${LB_MODE}" in progress|ubuntu|kubuntu) +Index: b/scripts/build/lb_binary_linux-image +=================================================================== +--- a/scripts/build/lb_binary_linux-image ++++ b/scripts/build/lb_binary_linux-image +@@ -58,7 +58,7 @@ + esac + + case "${LB_ARCHITECTURES}" in +- powerpc) ++ powerpc|ppc64el) + LINUX="vmlinux" + ;; + +Index: b/scripts/build/lb_binary_rootfs +=================================================================== +--- a/scripts/build/lb_binary_rootfs ++++ b/scripts/build/lb_binary_rootfs +@@ -43,7 +43,7 @@ + LINUX="vmlinuz" + ;; + +- powerpc) ++ powerpc|ppc64el) + LINUX="vmlinux" + ;; + esac