David Wright composed on 2023-12-21 19:20 (UTC-0600):

> On Thu 21 Dec 2023 at 21:38:46 (+0000), Mark Fletcher wrote:

>> My very first attempt involved using Debian's
>> /boot partition as the /boot partition for LFS as well, so installing
>> LFS's kernel (6.4.12 IIRC) alongside Debian's, but I quickly learned
>> the folly of that when I saw the mess update-grub made of that...
 
> What sort of mess? I would have thought Grub would ignore excess
> kernels dropped into /boot. 

It doesn't exactly ignore. This is from a rather old Dell MBR booting
with Grub Legacy installed (but rarely actually used to boot Bullseye):

# inxi -CSz
System:
  Kernel: 5.10.0-23-amd64 arch: x86_64 bits: 64 Desktop: Trinity v: R14.1.1
    Distro: Debian GNU/Linux 11 (bullseye)
CPU:
  Info: dual core model: Intel Core2 Duo E4400 bits: 64 type: MCP cache:
    L2: 2 MiB
  Speed (MHz): avg: 2000 min/max: N/A cores: 1: 2000 2: 2000
# apt-get full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-image-5.10.0-11-amd64 linux-image-5.10.0-13-amd64 
linux-image-5.10.0-14-amd64 linux-image-5.10.0-18-amd64
  linux-image-5.10.0-9-amd64 usb.ids
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  linux-image-5.10.0-26-amd64
The following packages will be upgraded:
  linux-image-amd64
1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/55.6 MB of archives.
After this operation, 318 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
Selecting previously unselected package linux-image-5.10.0-26-amd64.
(Reading database ... 97500 files and directories currently installed.)
Preparing to unpack .../linux-image-5.10.0-26-amd64_5.10.197-1_amd64.deb ...
Unpacking linux-image-5.10.0-26-amd64 (5.10.197-1) ...
Preparing to unpack .../linux-image-amd64_5.10.197-1_amd64.deb ...
Unpacking linux-image-amd64 (5.10.197-1) over (5.10.179-1) ...
Setting up linux-image-5.10.0-26-amd64 (5.10.197-1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.10.0-23-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-5.10.0-23-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-5.10.0-26-amd64
I: /initrd.img is now a symlink to boot/initrd.img-5.10.0-26-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.10.0-26-amd64
/etc/kernel/postinst.d/zz-update-grub:
Searching for GRUB installation directory ... found: /boot/grub
WARNING: tempfile is deprecated; consider using mktemp instead.
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
WARNING: tempfile is deprecated; consider using mktemp instead.
Searching for splash image ... none found, skipping ...
dpkg: warning: version 'prv' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'prv2' has bad syntax: version number does not start 
with digit
dpkg: warning: version 'cur' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'prv2' has bad syntax: version number does not start 
with digit
dpkg: warning: version 'cur' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'prv' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'prv2' has bad syntax: version number does not start 
with digit
dpkg: warning: version 'prv' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'cur' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'prv2' has bad syntax: version number does not start 
with digit
dpkg: warning: version 'prv' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'cur' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'prv2' has bad syntax: version number does not start 
with digit
dpkg: warning: version 'prv' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'cur' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'prv2' has bad syntax: version number does not start 
with digit
dpkg: warning: version 'prv' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'cur' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'prv2' has bad syntax: version number does not start 
with digit
dpkg: warning: version 'prv' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'cur' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'prv2' has bad syntax: version number does not start 
with digit
dpkg: warning: version 'prv' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'cur' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'prv2' has bad syntax: version number does not start 
with digit
dpkg: warning: version 'prv' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'cur' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'prv2' has bad syntax: version number does not start 
with digit
dpkg: warning: version 'prv' has bad syntax: version number does not start with 
digit
dpkg: warning: version 'cur' has bad syntax: version number does not start with 
digit
Found kernel: /boot/vmlinuz
Found kernel: /boot/vmlinuz-prv2
Found kernel: /boot/vmlinuz-prv
Found kernel: /boot/vmlinuz-cur
Found kernel: /boot/vmlinuz-5.10.0-26-amd64
Found kernel: /boot/vmlinuz-5.10.0-23-amd64
Found kernel: /boot/vmlinuz-5.10.0-20-amd64
Found kernel: /boot/vmlinuz-5.10.0-18-amd64
Found kernel: /boot/vmlinuz-5.10.0-14-amd64
Found kernel: /boot/vmlinuz-5.10.0-13-amd64
Found kernel: /boot/vmlinuz-5.10.0-11-amd64
Found kernel: /boot/vmlinuz-5.10.0-9-amd64
Updating /boot/grub/menu.lst ... done

Setting up linux-image-amd64 (5.10.197-1) ...
# ln -s vmlinuz-5.10.0-26-amd64 vmlinuz-cur && ln -s initrd.img-5.10.0-26-amd64 
initrd-cur
# ls -Gg vml*
lrwxrwxrwx 1      23 Jun 14  2023 vmlinuz -> vmlinuz-5.10.0-23-amd64
-rw-r--r-- 1 6837952 Feb 28  2022 vmlinuz-5.10.0-11-amd64
-rw-r--r-- 1 6840768 Mar 17  2022 vmlinuz-5.10.0-13-amd64
-rw-r--r-- 1 6843648 Apr 29  2022 vmlinuz-5.10.0-14-amd64
-rw-r--r-- 1 6962016 Sep  2  2022 vmlinuz-5.10.0-18-amd64
-rw-r--r-- 1 7008928 Dec 13  2022 vmlinuz-5.10.0-20-amd64
-rw-r--r-- 1 7036256 May 12  2023 vmlinuz-5.10.0-23-amd64
-rw-r--r-- 1 7044672 Sep 29 00:25 vmlinuz-5.10.0-26-amd64
lrwxrwxrwx 1      22 Oct 31  2021 vmlinuz51009 -> vmlinuz-5.10.0-9-amd64
-rw-r--r-- 1 6833568 Sep 30  2021 vmlinuz-5.10.0-9-amd64
lrwxrwxrwx 1      23 Feb  5  2022 vmlinuz51011 -> vmlinuz-5.10.0-11-amd64
lrwxrwxrwx 1      23 Apr 16  2022 vmlinuz51013 -> vmlinuz-5.10.0-13-amd64
lrwxrwxrwx 1      23 Jun  5  2022 vmlinuz51014 -> vmlinuz-5.10.0-14-amd64
lrwxrwxrwx 1      23 Sep 21  2022 vmlinuz51018 -> vmlinuz-5.10.0-18-amd64
lrwxrwxrwx 1      23 Dec 21 22:09 vmlinuz-cur -> vmlinuz-5.10.0-26-amd64
lrwxrwxrwx 1      23 Jun 14  2023 vmlinuz-prv -> vmlinuz-5.10.0-23-amd64
lrwxrwxrwx 1      23 Dec 30  2022 vmlinuz-prv2 -> vmlinuz-5.10.0-20-amd64
#

Newer PCs with grub-efi exhibit similar behavior, but all here that actually
have grub-efi installed already have current kernel.
-- 
Evolution as taught in public schools is, like religion,
        based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata

Reply via email to