Comment 12 for bug 1929255

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

# dpkg-query -W initramfs-tools linux-base
initramfs-tools 0.140ubuntu4
linux-base 4.5ubuntu8

# cat /etc/kernel-img.conf
do_symlinks = yes
do_bootloader = no
do_initrd = yes
link_in_boot = no

# ls -latr / | grep '> boot'
# apt install linux-generic
# ls -l / | grep '> boot'
lrwxrwxrwx 1 root root 33 May 27 13:12 initrd.img -> boot/initrd.img-5.11.0-16-generic
lrwxrwxrwx 1 root root 33 May 27 13:12 initrd.img.old -> boot/initrd.img-5.11.0-16-generic
lrwxrwxrwx 1 root root 30 May 27 13:12 vmlinuz -> boot/vmlinuz-5.11.0-16-generic
lrwxrwxrwx 1 root root 30 May 27 13:12 vmlinuz.old -> boot/vmlinuz-5.11.0-16-generic

# apt install linux-lowlatency
# ls -l / | grep '> boot'
lrwxrwxrwx 1 root root 36 May 27 13:17 initrd.img -> boot/initrd.img-5.11.0-16-lowlatency
lrwxrwxrwx 1 root root 33 May 27 13:12 initrd.img.old -> boot/initrd.img-5.11.0-16-generic
lrwxrwxrwx 1 root root 33 May 27 13:17 vmlinuz -> boot/vmlinuz-5.11.0-16-lowlatency
lrwxrwxrwx 1 root root 30 May 27 13:12 vmlinuz.old -> boot/vmlinuz-5.11.0-16-generic

Grab a "self-built" kernel
# wget https://kernel.ubuntu.com/~kernel-ppa/mainline/daily/2021-05-26/amd64/linux-image-unsigned-5.13.0-051300rc3daily20210526-generic_5.13.0-051300rc3daily20210526.202105252209_amd64.deb

# wget https://kernel.ubuntu.com/~kernel-ppa/mainline/daily/2021-05-26/amd64/linux-modules-5.13.0-051300rc3daily20210526-generic_5.13.0-051300rc3daily20210526.202105252209_amd64.deb

# dpkg-deb -x linux-modules-5.13.0-051300rc3daily20210526-generic_5.13.0-051300rc3daily20210526.202105252209_amd64.deb linux/
# dpkg-deb -x linux-image-unsigned-5.13.0-051300rc3daily20210526-generic_5.13.0-051300rc3daily20210526.202105252209_amd64.deb linux/
# cp -r linux/lib/modules/5.13.0-051300rc3daily20210526-generic /lib/modules/

# installkernel 5.13.0-051300rc3daily202
10526-generic ./linux/boot/vmlinuz-5.13.0-051300rc3daily20210526-generic ./linux/boot/System.map-5.13.0-051300rc3daily20210526-generic
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.13.0-051300rc3daily20210526-generic /boot/vmlinuz-5.13.0-051300rc3daily20210526-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.13.0-051300rc3daily20210526-generic /boot/vmlinuz-5.13.0-051300rc3daily20210526-generic
update-initramfs: Generating /boot/initrd.img-5.13.0-051300rc3daily20210526-generic

# ls -l / | grep '> boot'
lrwxrwxrwx 1 root root 36 May 27 13:29 initrd.img -> boot/initrd.img-5.11.0-16-lowlatency
lrwxrwxrwx 1 root root 33 May 27 13:33 initrd.img.old -> boot/initrd.img-5.11.0-16-generic
lrwxrwxrwx 1 root root 33 May 27 13:29 vmlinuz -> boot/vmlinuz-5.11.0-16-lowlatency
lrwxrwxrwx 1 root root 30 May 27 13:29 vmlinuz.old -> boot/vmlinuz-5.11.0-16-generic

and fail.... Let's see what's wrong with my patch.