Francis Montagnac composed on 2025-07-29 08:46 (UTC+0200):
 
> On Tue, 29 Jul 2025 01:27:05 -0400 Felix Miata wrote:
 
>> The way I remember it, without presence of /etc/kernel/install.d/*,
>> kernel installation fails to generate /boot/initramfs-<version>,
>> thus why I found 20-grub.install somewhere and placed it myself.
 
> AFAIK the /boot/initramfs-* are generated by:
 
>   /usr/lib/kernel/install.d/50-dracut.install
 
> but I don't see any references to /etc/kernel/install.d/ in this
> script.
 
> In addition, /usr/lib/kernel/install.d/ is empty in a fresh (working)
> F42 installation.
 
> This 20-grub.install is thus probably not needed any more.
 
> Try perhaps to simply remove /etc/kernel/install.d/20-grub.install
 
It turns out I misremembered what I had done in order to get /boot/
populated with necessary boot files. On some installations I had
copied to /etc/kernel/ as I wrote, but on others I had determined
where those files had originated: grub2-common. IOW, without the
installation of grub2-common, initramfs* is created and placed in
/boot/, but no vmlinuz* is placed there, whenever a kernel is installed.
Meanwhile, with those scripts available in either /etc/kernel/ or in
/usr/lib/kernel/, vmlinuz* is placed in /boot/ on kernel installation,
but the 20-grub.install error messages (in my OP) accompany each kernel
installation, even though no bootloader, including "Grub", is relevant
to, or a necessary part of, the Fedora OS installation.

# inxi -S
System:
  Host: ab250 Kernel: 6.14.11-300.fc42.x86_64 arch: x86_64 bits: 64
  Console: pty pts/0 Distro: Fedora Linux 42 (Adams)
# ls -gGR /etc/kernel/ /usr/lib/kernel/
/etc/kernel/:
total 2
drwxr-xr-x 2 1024 Jun 26 20:00 install.d
drwxr-xr-x 2 1024 Oct  9  2020 postinst.d

/etc/kernel/install.d:
total 0

/etc/kernel/postinst.d:
total 0

/usr/lib/kernel/:
total 4
-rw-r--r-- 1  407 Jun 25 08:36 install.conf
drwxr-xr-x 2 1024 Jul 30 01:28 install.d
-rw-r--r-- 1 1102 Jun 25 08:36 uki.conf

/usr/lib/kernel/install.d:
total 20
-rwxr-xr-x 1 2100 Jun 25 08:36 50-depmod.install
-rwxr-xr-x 1 4347 Apr  1 20:00 50-dracut.install
-rwxr-xr-x 1 7788 Jun 26 20:00 90-loaderentry.install
-rwxr-xr-x 1 3583 Jun 25 08:36 90-uki-copy.install
# rpm -qa | grep grub
# rpm -ivh kernel-core-6.15.8-200.fc42.x86_64.rpm 
kernel-6.15.8-200.fc42.x86_64.rpm kernel-modules-6.15.8-200.fc42.x86_64.rpm 
kernel-modules-core-6.15.8-200.fc42.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:kernel-modules-core-6.15.8-200.fc################################# [ 25%]
   2:kernel-core-6.15.8-200.fc42      ################################# [ 50%]
   3:kernel-modules-6.15.8-200.fc42   ################################# [ 75%]
   4:kernel-6.15.8-200.fc42           ################################# [100%]# 
cd /boot
# ls -gGrt initram* && ls -gGrt vmlinuz-6*
-rw------- 1 19585828 Apr 30 19:46 initramfs-6.13.11-200.fc41.x86_64.img
-rw------- 1 19614308 Jun 23 14:40 initramfs-6.14.11-300.fc42.x86_64.img
-rw------- 1 23438724 Jul 30 01:14 initramfs-6.15.8-200.fc42.x86_64.img
-rwxr-xr-x 1 16943464 Apr  9 20:00 vmlinuz-6.13.11-200.fc41.x86_64
-rwxr-xr-x 1 17250664 Jun  9 20:00 vmlinuz-6.14.11-300.fc42.x86_64
# rpm -ev kernel-core-6.15.8-200.fc42 kernel-6.15.8-200.fc42 
kernel-modules-6.15.8-200.fc42 kernel-modules-core-6.15.8-200.fc42
Preparing packages...
kernel-6.15.8-200.fc42.x86_64
kernel-modules-6.15.8-200.fc42.x86_64
kernel-modules-core-6.15.8-200.fc42.x86_64
kernel-core-6.15.8-200.fc42.x86_64
# ls -gGrt initram* && ls -gGrt vmlinuz-6*
-rw------- 1 19585828 Apr 30 19:46 initramfs-6.13.11-200.fc41.x86_64.img
-rw------- 1 19614308 Jun 23 14:40 initramfs-6.14.11-300.fc42.x86_64.img
-rwxr-xr-x 1 16943464 Apr  9 20:00 vmlinuz-6.13.11-200.fc41.x86_64
-rwxr-xr-x 1 17250664 Jun  9 20:00 vmlinuz-6.14.11-300.fc42.x86_64
# dnf install grub2-common
Updating and loading repositories:
Repositories loaded.
Package             Arch    Version         Repository  Size
Installing:
 grub2-common       noarch  1:2.12-32.fc42  updates     6.1 MiB

Transaction Summary:
 Installing:         1 package

Total size of inbound packages is 1 MiB. Need to download 1 MiB.
After this operation, 6 MiB extra will be used (install 6 MiB, remove 0 B).
Is this ok [y/N]: y
[1/1] grub2-common-1:2.12-32.fc42.noarch            100% |   1.5 MiB/s |   1.0 
MiB |  00m01s
--------------------------------------------------------------------------------------------
[1/1] Total                                         100% | 965.4 KiB/s |   1.0 
MiB |  00m01s
Running transaction
[1/3] Verify package files                          100% | 125.0   B/s |   1.0  
 B |  00m00s
[2/3] Prepare transaction                           100% |  15.0   B/s |   1.0  
 B |  00m00s
[3/3] Installing grub2-common-1:2.12-32.fc42.noarch 100% |   5.5 MiB/s |   6.2 
MiB |  00m01s
Complete!
# ls -gGR /etc/kernel/ /usr/lib/kernel/
/etc/kernel/:
total 2
drwxr-xr-x 2 1024 Jun 26 20:00 install.d
drwxr-xr-x 2 1024 Oct  9  2020 postinst.d

/etc/kernel/install.d:
total 0

/etc/kernel/postinst.d:
total 0

/usr/lib/kernel/:
total 4
-rw-r--r-- 1  407 Jun 25 08:36 install.conf
drwxr-xr-x 2 1024 Jul 30 01:30 install.d
-rw-r--r-- 1 1102 Jun 25 08:36 uki.conf

/usr/lib/kernel/install.d:
total 32
-rwxr-xr-x 1 9318 Jun  4 20:00 20-grub.install
-rwxr-xr-x 1 2100 Jun 25 08:36 50-depmod.install
-rwxr-xr-x 1 4347 Apr  1 20:00 50-dracut.install
-rwxr-xr-x 1 7788 Jun 26 20:00 90-loaderentry.install
-rwxr-xr-x 1 3583 Jun 25 08:36 90-uki-copy.install
-rwxr-xr-x 1 1584 Jun  4 20:00 99-grub-mkconfig.install
# cd <filter>/Fedora/42
# rpm -ivh kernel-core-6.15.8-200.fc42.x86_64.rpm 
kernel-6.15.8-200.fc42.x86_64.rpm kernel-modules-6.15.8-200.fc42.x86_64.rpm 
kernel-modules-core-6.15.8-200.fc42.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:kernel-modules-core-6.15.8-200.fc################################# [ 25%]
   2:kernel-core-6.15.8-200.fc42      ################################# [ 50%]
   3:kernel-modules-6.15.8-200.fc42   ################################# [ 75%]
   4:kernel-6.15.8-200.fc42           ################################# [100%]
/usr/lib/kernel/install.d/20-grub.install: line 128: grub2-get-kernel-settings: 
command not found
/usr/lib/kernel/install.d/20-grub.install: line 140: grub2-probe: command not 
found
/usr/lib/kernel/install.d/20-grub.install: line 140: grub2-probe: command not 
found
/usr/lib/kernel/install.d/20-grub.install: line 143: grub2-mkrelpath: command 
not found
dirname: missing operand
Try 'dirname --help' for more information.
/usr/lib/kernel/install.d/99-grub-mkconfig.install failed with exit status 127.
warning: %posttrans(kernel-core-6.15.8-200.fc42.x86_64) scriptlet failed, exit 
status 127
# cd /boot
# ls -gGrt initram* && ls -gGrt vmlinuz-6*
-rw------- 1 19585828 Apr 30 19:46 initramfs-6.13.11-200.fc41.x86_64.img
-rw------- 1 19614308 Jun 23 14:40 initramfs-6.14.11-300.fc42.x86_64.img
-rw------- 1 23438724 Jul 30 01:33 initramfs-6.15.8-200.fc42.x86_64.img
-rwxr-xr-x 1 16943464 Apr  9 20:00 vmlinuz-6.13.11-200.fc41.x86_64
-rwxr-xr-x 1 17250664 Jun  9 20:00 vmlinuz-6.14.11-300.fc42.x86_64
-rwxr-xr-x 1 17525096 Jul 23 20:00 vmlinuz-6.15.8-200.fc42.x86_64
#

In short, no apparent method exists to fully install a kernel
on Fedora, without manual intervention, whilst the (multiboot
Fedora) installation is completely free of a bootloader that
it otherwise has no need for. The error messages referred to
in the subject are a consequence of avoiding need for manual
placement of vmlinuz* in /boot/ on each kernel installation.
-- 
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
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to