Produce buildd kernel and initrd as separate artifacts

Multipass on Mac OS X requires standalone kernel and initrd artifacts
to boot.

Also call update-initramfs on all installed kernels. We only have one
kernel installed, so we don't need to specify an explicit version.
sil2100/proposed-components
David Krauser 4 years ago
parent a3d6f34970
commit 065c823144

9
debian/changelog vendored

@ -1,3 +1,12 @@
livecd-rootfs (2.695) UNRELEASED; urgency=medium
* buildd: produce kernel and initrd as separate artifacts
* buildd: call update-initramfs for all installed kernels
We only have one kernel installed, so we don't need to
specify an explicit version.
-- David Krauser <david.krauser@canonical.com> Tue, 20 Oct 2020 15:00:38 -0400
livecd-rootfs (2.694) groovy; urgency=medium livecd-rootfs (2.694) groovy; urgency=medium
* Add the pi desktop oem user to the adm and sudo groups, as that is needed * Add the pi desktop oem user to the adm and sudo groups, as that is needed

@ -56,8 +56,11 @@ chroot "$mount_d" update-grub
undivert_grub "$mount_d" undivert_grub "$mount_d"
# Update initramfs image # Update initramfs image
chroot "$mount_d" \ chroot "$mount_d" update-initramfs -c -v -k all
sh -c 'update-initramfs -c -v -k $(ls /boot/vmlinuz*generic | sed 1q | cut -d- -f2-3)'
# extract kernel and initrd
cp $mount_d/boot/initrd.img-* livecd.$PROJECT.initrd-generic
cp $mount_d/boot/vmlinuz-* livecd.$PROJECT.vmlinuz-generic
# Cleanup # Cleanup
env DEBIAN_FRONTEND=noninteractive chroot "$mount_d" apt-get \ env DEBIAN_FRONTEND=noninteractive chroot "$mount_d" apt-get \

Loading…
Cancel
Save