diff -Nru live-build-3.0~a57/debian/changelog live-build-3.0~a57/debian/changelog --- live-build-3.0~a57/debian/changelog 2017-08-08 05:08:45.000000000 +0000 +++ live-build-3.0~a57/debian/changelog 2017-09-28 18:01:04.000000000 +0000 @@ -1,3 +1,9 @@ +live-build (3.0~a57-1ubuntu31) artful; urgency=medium + + * Don't fail when initramfs is not used (LP: #1720217) + + -- Balint Reczey Thu, 28 Sep 2017 18:01:04 +0000 + live-build (3.0~a57-1ubuntu30) artful; urgency=medium * Drop fix-up code for sysvinit, which has not been essential in Ubuntu in 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 2017-08-08 05:08:45.000000000 +0000 +++ live-build-3.0~a57/debian/patches/series 2017-09-28 18:01:04.000000000 +0000 @@ -33,3 +33,4 @@ ubuntu-s390x-support.patch ubuntu-initramfs-compression-symlinks.patch ubuntu-no-sysvinit-fixups.patch +skip-missing-initrd.patch diff -Nru live-build-3.0~a57/debian/patches/skip-missing-initrd.patch live-build-3.0~a57/debian/patches/skip-missing-initrd.patch --- live-build-3.0~a57/debian/patches/skip-missing-initrd.patch 1970-01-01 00:00:00.000000000 +0000 +++ live-build-3.0~a57/debian/patches/skip-missing-initrd.patch 2017-09-28 18:01:04.000000000 +0000 @@ -0,0 +1,20 @@ +Description: Skip installing missing initrd + ... instead of failing. + . +Author: Balint Reczey + +Bug-Ubuntu: https://launchpad.net/bugs/1720217 +Forwarded: no +Last-Update: 2017-09-28 + +--- live-build-3.0~a57.orig/scripts/build/lb_binary_linux-image ++++ live-build-3.0~a57/scripts/build/lb_binary_linux-image +@@ -76,7 +76,7 @@ mkdir -p "${DESTDIR}" + if [ "${LB_LINUX_PACKAGES}" != "none" ] + then + cp chroot/boot/"${LINUX}"-* "${DESTDIR}" +- cp chroot/boot/initrd.img-* "${DESTDIR}" ++ cp chroot/boot/initrd.img-* "${DESTDIR}" 2>&1 || Echo_message "Skipped installing missing initrd." + fi + + case "${LB_INITRAMFS}" in