# 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.
# 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' img-5.11. 0-16-generic img-5.11. 0-16-generic 5.11.0- 16-generic 5.11.0- 16-generic
# apt install linux-generic
# ls -l / | grep '> boot'
lrwxrwxrwx 1 root root 33 May 27 13:12 initrd.img -> boot/initrd.
lrwxrwxrwx 1 root root 33 May 27 13:12 initrd.img.old -> boot/initrd.
lrwxrwxrwx 1 root root 30 May 27 13:12 vmlinuz -> boot/vmlinuz-
lrwxrwxrwx 1 root root 30 May 27 13:12 vmlinuz.old -> boot/vmlinuz-
# apt install linux-lowlatency img-5.11. 0-16-lowlatency img-5.11. 0-16-generic 5.11.0- 16-lowlatency 5.11.0- 16-generic
# ls -l / | grep '> boot'
lrwxrwxrwx 1 root root 36 May 27 13:17 initrd.img -> boot/initrd.
lrwxrwxrwx 1 root root 33 May 27 13:12 initrd.img.old -> boot/initrd.
lrwxrwxrwx 1 root root 33 May 27 13:17 vmlinuz -> boot/vmlinuz-
lrwxrwxrwx 1 root root 30 May 27 13:12 vmlinuz.old -> boot/vmlinuz-
Grab a "self-built" kernel /kernel. ubuntu. com/~kernel- ppa/mainline/ daily/2021- 05-26/amd64/ linux-image- unsigned- 5.13.0- 051300rc3daily2 0210526- generic_ 5.13.0- 051300rc3daily2 0210526. 202105252209_ amd64.deb
# wget https:/
# wget https:/ /kernel. ubuntu. com/~kernel- ppa/mainline/ daily/2021- 05-26/amd64/ linux-modules- 5.13.0- 051300rc3daily2 0210526- generic_ 5.13.0- 051300rc3daily2 0210526. 202105252209_ amd64.deb
# dpkg-deb -x linux-modules- 5.13.0- 051300rc3daily2 0210526- generic_ 5.13.0- 051300rc3daily2 0210526. 202105252209_ amd64.deb linux/ unsigned- 5.13.0- 051300rc3daily2 0210526- generic_ 5.13.0- 051300rc3daily2 0210526. 202105252209_ amd64.deb linux/ modules/ 5.13.0- 051300rc3daily2 0210526- generic /lib/modules/
# dpkg-deb -x linux-image-
# cp -r linux/lib/
# installkernel 5.13.0- 051300rc3daily2 02 boot/vmlinuz- 5.13.0- 051300rc3daily2 0210526- generic ./linux/ boot/System. map-5.13. 0-051300rc3dail y20210526- generic postinst. d/apt-auto- removal 5.13.0- 051300rc3daily2 0210526- generic /boot/vmlinuz- 5.13.0- 051300rc3daily2 0210526- generic postinst. d/initramfs- tools 5.13.0- 051300rc3daily2 0210526- generic /boot/vmlinuz- 5.13.0- 051300rc3daily2 0210526- generic img-5.13. 0-051300rc3dail y20210526- generic
10526-generic ./linux/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
# ls -l / | grep '> boot' img-5.11. 0-16-lowlatency img-5.11. 0-16-generic 5.11.0- 16-lowlatency 5.11.0- 16-generic
lrwxrwxrwx 1 root root 36 May 27 13:29 initrd.img -> boot/initrd.
lrwxrwxrwx 1 root root 33 May 27 13:33 initrd.img.old -> boot/initrd.
lrwxrwxrwx 1 root root 33 May 27 13:29 vmlinuz -> boot/vmlinuz-
lrwxrwxrwx 1 root root 30 May 27 13:29 vmlinuz.old -> boot/vmlinuz-
and fail.... Let's see what's wrong with my patch.