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

image.
core-include-dmsetup
Steve Langasek 7 years ago
parent 3d6660594d
commit cb73e2475e

7
debian/changelog vendored

@ -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 livecd-rootfs (2.408.21) xenial; urgency=medium
[ Balint Reczey ] [ Balint Reczey ]

@ -158,6 +158,14 @@ EOF
lb chroot "$@" 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 if [ -f config/oem-config-preinstalled ]; then
# This is cargo-culted almost verbatim (with some syntax changes for # This is cargo-culted almost verbatim (with some syntax changes for

Loading…
Cancel
Save