Make sure to remove any initramfs that was generated in a minimized

image.
This commit is contained in:
Steve Langasek 2017-10-21 20:53:00 -07:00
parent 3d6660594d
commit cb73e2475e
2 changed files with 15 additions and 0 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
livecd-rootfs (2.408.22) UNRELEASED; urgency=medium
* Make sure to remove any initramfs that was generated in a minimized
image.
-- Steve Langasek <steve.langasek@ubuntu.com> Sat, 21 Oct 2017 20:52:38 -0700
livecd-rootfs (2.408.21) xenial; urgency=medium
[ Balint Reczey ]

View File

@ -158,6 +158,14 @@ EOF
lb chroot "$@"
if [ "${SUBPROJECT:-}" = minimized ]; then
# and if initramfs-tools was configured before our kernel,
# /etc/kernel/postinst.d/initramfs-tools will have created
# an initramfs despite the generic dpkg-divert; so remove it
# here.
rm -f chroot/boot/initrd.img-*
fi
if [ -f config/oem-config-preinstalled ]; then
# This is cargo-culted almost verbatim (with some syntax changes for