Fedora Account System
Red Hat Associate
Red Hat Customer
Created attachment 1906604 [details] 'journalctl -b -3 | grep -B1 -A9 dracut' including an rpm -ivh kernel* installation process Description of problem: 'rpm -ivh kernel-core-<version> kernel-modules-<version>' doesn't add anything to /boot/ except for initramfs-<version> Version-Release number of selected component (if applicable): rpm-4.18.0-0.beta1.4.fc37.x86_64 dracut-057-1.fc37.1.x86_64 How reproducible: Every time, save once out of 9 PCs. Steps to Reproduce: 1-include in /etc/dnf/dnf.conf kernel* in its exclude= line 2-fetch a matched kernel core & modules rpm set from a Fedora mirror 3-rpm -ivh kernel-core-<version> kernel-modules-<version> Actual results: initramfs for new kernel is the only file found added in /boot/ Expected results: 5 files, including new kernel and initramfs, are found added in /boot/ Additional info: 1-grub2 and grub2-efi* are not installed (or needed, or wanted) 2-announced in https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org/message/UHBTGIK4G3GPK77YWXP3F56OAAK6CTAE/ which was with kernel 5.19.0-0.rc8.20220729git6e2c0490769e.62.fc37.x86_64 but may have begun with an earlier kernel 3-With every rpm kernel installation it has been necessary to copy the appropriate vmlinuz, initially from the rpm, later from the /lib/modules/ tree, and append its version string to the copied filename 4-Reproduced on all except one of ~9 36>37 upgrades on various x64_64 multiboot PCs. Whatever is or was unique among installed, related packages or configuration in the exception I don't know. Primary differences among my installations is the hardware, little among software or hardware independent configuration. There were errors from dracut processing (I believe) in the exception: ...kunit_do_failed_assertion ...__kunit_test_suites_exit ...__kunit_test_suites_init ...kunit_binary_assert_format 5-The attachment may be from my first encounter with this issue.
Definitely wrong component, basesystem is just metapackage with no content - used to install basic package in the right order. I'll try to re-assign to dracut for further re-assignment - as I believe they can reassign it to the right place.
Reproduced on yet another fresh upgrade from F36, host gb970, on which the only grub* installed is grubby-deprecated-8.40-67.fc36.
This problem apparently exists on all my F37 installations, more than a dozen total, even when kernel package is installed along with kernel-core and kernel-modules. Today: host gx780, on legacy/MBR boot system.
dracut is only responsible for creating initramfs, since that has been triggered and the file is present, let's move this to kernel. Feel free to reassign in case I'm mistaken.
This message is a reminder that Fedora Linux 37 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '37'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 37 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
It appears this may be avoided by including GRUB_ENABLE_BLSCFG=false in /etc/default/grub in F39, but not in F38.
Created attachment 2002329 [details] journal section from installing kernel 6.6.3 on F39 on host fi965 Screen I/O from a kernel installation that results in vmlinuz-6.6.3-200.fc39.x86_64 not appearing in /boot/ copied or symlinked from /usr/lib/modules/<version>/vmlinuz on host fi965 moments ago.: # time rpm -ivh kernel-6.6.3-200.fc39.x86_64.rpm kernel-core-6.6.3-200.fc39.x86_64.rpm kernel-modules-6.6.3-200.fc39.x86_64.rpm kernel-modules-core-6.6.3-200.fc39.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:kernel-modules-core-6.6.3-200.fc3################################# [ 25%] 2:kernel-core-6.6.3-200.fc39 ################################# [ 50%] 3:kernel-modules-6.6.3-200.fc39 ################################# [ 75%] 4:kernel-6.6.3-200.fc39 ################################# [100%] cp: cannot stat '/lib/modules/6.6.3-200.fc39.x86_64/bls.conf': No such file or directory sed: can't read /boot/loader/entries/11352b14084942c18a21a5586db0b5b3-0-rescue.conf: No such file or directory /usr/lib/kernel/install.d/51-dracut-rescue.install failed with exit status 2. warning: %posttrans(kernel-core-6.6.3-200.fc39.x86_64) scriptlet failed, exit status 2 real 1m32.843s user 1m22.518s sys 0m11.485s #
This message is a reminder that Fedora Linux 38 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '38'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 38 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
I'm still forced to manually create kernel presence in /boot/ in F39 and F40 on all my bootloader-absent (aka all) installations. Minutes ago on x86_64 host ara88: # rpm -qa | egrep 'boot|grub' systemd-bootchart-234-3.fc40.x86_64 efibootmgr-18-6.fc40.x86_64 # time rpm -ivh kernel-6.8.9-300.fc40.x86_64.rpm kernel-core-6.8.9-300.fc40.x86_64.rpm kernel-modules-6.8.9-300.fc40.x86_64.rpm kernel-modules-core-6.8.9-300.fc40.x86_64.rpm ... # ls -gG /boot/ total 133918 drwx------ 3 2048 Jan 23 19:00 efi -rw------- 1 45116316 Dec 25 13:14 initramfs-0-rescue-4921feeb9b8e48d6a4b638b4bfa19e1a.img -rw------- 1 15849936 Feb 13 21:38 initramfs-6.6.14-200.fc39.x86_64.img -rw------- 1 15937852 Mar 27 19:38 initramfs-6.7.10-200.fc39.x86_64.img -rw------- 1 16071044 May 10 20:10 initramfs-6.8.9-300.fc40.x86_64.img lrwxrwxrwx 1 36 Mar 27 19:40 initrd -> initramfs-6.7.10-200.fc39.x86_64.img lrwxrwxrwx 1 36 Mar 27 19:40 initrd-prv -> initramfs-6.7.10-200.fc39.x86_64.img lrwxrwxrwx 1 36 Feb 13 21:40 initrd-prv2 -> initramfs-6.6.14-200.fc39.x86_64.img lrwxrwxrwx 1 55 Sep 26 2020 initrd-rescue -> initramfs-0-rescue-4921feeb9b8e48d6a4b638b4bfa19e1a.img drwxr-xr-x 3 2048 Jan 20 2020 loader lrwxrwxrwx 1 46 Feb 13 21:38 symvers-6.6.14-200.fc39.x86_64.xz -> /lib/modules/6.6.14-200.fc39.x86_64/symvers.xz lrwxrwxrwx 1 46 Mar 27 19:38 symvers-6.7.10-200.fc39.x86_64.xz -> /lib/modules/6.7.10-200.fc39.x86_64/symvers.xz lrwxrwxrwx 1 45 May 10 20:10 symvers-6.8.9-300.fc40.x86_64.xz -> /lib/modules/6.8.9-300.fc40.x86_64/symvers.xz -rwxr-xr-x 1 14670952 Dec 25 13:13 vmlinuz-0-rescue-4921feeb9b8e48d6a4b638b4bfa19e1a -rwxr-xr-x 1 14678120 Jan 25 19:00 vmlinuz-6.6.14-200.fc39 -rwxr-xr-x 1 14794568 Mar 17 20:00 vmlinuz-6.7.10-200.fc39 lrwxrwxrwx 1 23 Mar 27 19:40 vmlinuz-prv -> vmlinuz-6.7.10-200.fc39 lrwxrwxrwx 1 23 Feb 13 21:40 vmlinuz-prv2 -> vmlinuz-6.6.14-200.fc39 lrwxrwxrwx 1 49 Sep 26 2020 vmlinuz-rescue -> vmlinuz-0-rescue-4921feeb9b8e48d6a4b638b4bfa19e1a # The reason 6.6.14 and 6.7.10 kernels (and the symlinks for booting) are there is because I put them there myself after prior kernel installations omitted putting any vmlinuz* in /boot/, except sometimes vmlinuz-0-rescue....
File 20-grub-install from package grub2-common copied to /etc/kernel/install.d/ works around this in F40, F41 & Rawhide. Grub* packages should not be necessary on bootloader-free installations. That script, or some relevant portion of it, or something more specific to task of placing traditional kernel-related boot files in /boot/ when kernel is installed, should have a more appropriately named source and filename.
Interesting. The upstream has reworked the install.d/ scriplets in the dracut package. The plan / idea in general was to move part (more than it's now) of the functionality to grub's install.d/ scriplets. I guess nobody kept in mind this scenario - but we'll see when this is updated in Fedora as well (currently it's reverted). This will require further [dracut et al] upstream discussion. -- Thanks for the information!
Following is a typical kernel installation transaction on multiboot system with no need for installed bootloader on Fedora installation, and with comment #10 workaround employed: # rpm -qa | grep grub # rpm -ivh kernel-6.12.13-200.fc41.x86_64.rpm kernel-core-6.12.13-200.fc41.x86_64.rpm kernel-modules-6.12.13-200.fc41.x86_64.rpm kernel-modules-core-6.12.13-200.fc41.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:kernel-modules-core-6.12.13-200.f################################# [ 25%] 2:kernel-core-6.12.13-200.fc41 ################################# [ 50%] 3:kernel-modules-6.12.13-200.fc41 ################################# [ 75%] 4:kernel-6.12.13-200.fc41 ################################# [100%] /etc/kernel/install.d/20-grub.install: line 120: grub2-get-kernel-settings: command not found /etc/kernel/install.d/20-grub.install: line 132: grub2-probe: command not found /etc/kernel/install.d/20-grub.install: line 132: grub2-probe: command not found /etc/kernel/install.d/20-grub.install: line 135: grub2-mkrelpath: command not found dirname: missing operand Try 'dirname --help' for more information. # ls -gGrt /boot/initram* /boot/vmlinuz-6* -rwxr-xr-x 1 16312680 Dec 4 19:00 /boot/vmlinuz-6.11.11-200.fc40.x86_64 -rw------- 1 19216672 Dec 29 17:12 /boot/initramfs-6.11.11-200.fc40.x86_64.img -rwxr-xr-x 1 16611688 Feb 7 19:00 /boot/vmlinuz-6.12.13-200.fc41.x86_64 -rw------- 1 19366944 Feb 13 11:13 /boot/initramfs-6.12.13-200.fc41.x86_64.img #
This report has not received an update in over 90 days. If this issue is still relevant to you, please do not hesitate to update this report with any relevant details on recent investigative steps or changes and we will absolutely work to understand how to best move forward. Otherwise, this bug report will need to be closed in 30 days. No worries, however; should you need still assistance after the report is closed, please do not hesitate to create a new bug report referencing this report and with any new details on the matter. NOTE: This is an automated mass update.
Workaround in comment 10 continues necessary in 43 and 44. Without it: # inxi -S System: Host: k9msi Kernel: 7.0.11-200.fc44.x86_64 arch: x86_64 bits: 64 Console: pty pts/1 Distro: Fedora Linux 44 (Forty Four) # ls -gGh /boot/*7.0* -rw-r--r-- 1 293K May 31 20:00 /boot/config-7.0.11-200.fc44.x86_64 -rw------- 1 35M Jun 4 08:01 /boot/initramfs-7.0.11-200.fc44.x86_64.img -rw------- 1 35M Jul 26 06:46 /boot/initramfs-7.0.14-201.fc44.x86_64.img -rw-r--r-- 1 188K Jun 4 08:01 /boot/symvers-7.0.11-200.fc44.x86_64.xz -rw-r--r-- 1 188K Jul 26 06:46 /boot/symvers-7.0.14-201.fc44.x86_64.xz -rw-r--r-- 1 12M May 31 20:00 /boot/System.map-7.0.11-200.fc44.x86_64 -rwxr-xr-x 1 18M May 31 20:00 /boot/vmlinuz-7.0.11-200.fc44.x86_64 With it: # rpm -ivh kernel-7.0.14-201.fc44.x86_64.rpm kernel-core-7.0.14-201.fc44.x86_64.rpm kernel-modules-7.0.14-201.fc44.x86_64.rpm kernel-modules-core-7.0.14-201.fc44.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:kernel-core-7.0.14-201.fc44 ################################# [ 25%] 2:kernel-modules-core-7.0.14-201.fc################################# [ 50%] 3:kernel-modules-7.0.14-201.fc44 ################################# [ 75%] 4:kernel-7.0.14-201.fc44 ################################# [100%] /etc/kernel/install.d/20-grub.install: line 128: grub2-get-kernel-settings: command not found /etc/kernel/install.d/20-grub.install: line 140: grub2-probe: command not found /etc/kernel/install.d/20-grub.install: line 140: grub2-probe: command not found /etc/kernel/install.d/20-grub.install: line 143: grub2-mkrelpath: command not found dirname: missing operand Try 'dirname --help' for more information. # ls -gGh /boot/*7.0* -rw-r--r-- 1 293K May 31 20:00 /boot/config-7.0.11-200.fc44.x86_64 -rw-r--r-- 1 293K Jun 30 20:00 /boot/config-7.0.14-201.fc44.x86_64 -rw------- 1 35M Jun 4 08:01 /boot/initramfs-7.0.11-200.fc44.x86_64.img -rw------- 1 35M Jul 26 06:57 /boot/initramfs-7.0.14-201.fc44.x86_64.img -rw-r--r-- 1 188K Jun 4 08:01 /boot/symvers-7.0.11-200.fc44.x86_64.xz lrwxrwxrwx 1 46 Jul 26 06:56 /boot/symvers-7.0.14-201.fc44.x86_64.xz -> /lib/modules/7.0.14-201.fc44.x86_64/symvers.xz -rw-r--r-- 1 12M May 31 20:00 /boot/System.map-7.0.11-200.fc44.x86_64 -rw-r--r-- 1 12M Jun 30 20:00 /boot/System.map-7.0.14-201.fc44.x86_64 -rwxr-xr-x 1 18M May 31 20:00 /boot/vmlinuz-7.0.11-200.fc44.x86_64 -rwxr-xr-x 1 18M Jun 30 20:00 /boot/vmlinuz-7.0.14-201.fc44.x86_64
Greetings Felix, this is Charles Haithcock working along side Justin Forbes on bugzilla reports. Thank you for that confirmation the issue still exists for you. I seem to be able to reproduce it as well; === Before install rpm -qa | grep grub -c 0 # ls /boot config-7.1.5-200.fc44.x86_64 symvers-7.1.5-200.fc44.x86_64.xz grub2 System.map-7.1.5-200.fc44.x86_64 initramfs-0-rescue-3a765d83cd1a47f4ae5c66c38b32397f.img vmlinuz-0-rescue-3a765d83cd1a47f4ae5c66c38b32397f initramfs-7.1.5-200.fc44.x86_64.img vmlinuz-7.1.5-200.fc44.x86_64 Install # rpm -ivh ./kernel-*rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:kernel-core-7.1.5-201.fc44 ################################# [ 25%] 2:kernel-modules-core-7.1.5-201.fc4################################# [ 50%] 3:kernel-modules-7.1.5-201.fc44 ################################# [ 75%] 4:kernel-7.1.5-201.fc44 ################################# [100%] Post install # ls /boot config-7.1.5-200.fc44.x86_64 symvers-7.1.5-200.fc44.x86_64.xz grub2 symvers-7.1.5-201.fc44.x86_64.xz initramfs-0-rescue-3a765d83cd1a47f4ae5c66c38b32397f.img System.map-7.1.5-200.fc44.x86_64 initramfs-7.1.5-200.fc44.x86_64.img vmlinuz-0-rescue-3a765d83cd1a47f4ae5c66c38b32397f initramfs-7.1.5-201.fc44.x86_64.img vmlinuz-7.1.5-200.fc44.x86_64 === I took a look at the 20-grub-install script and it seems to have only two options for it, `add` and `remove` wherein they do the work of adding and removing a kernel to/from /boot (among a few other things related to that activity). Given moving to `/boot` should _probably_ happen as part of the rpm scripts, I checked the scripts for kernel-core; === postinstall scriptlet (using /bin/sh): mkdir -p /var/lib/rpm-state/kernel touch /var/lib/rpm-state/kernel/installing_core_7.1.5-201.fc44.x86_64 preuninstall scriptlet (using /bin/sh): entry_type="" /bin/kernel-install --help|grep -q -- '--entry-type=' && entry_type="--entry-type type1" /bin/kernel-install remove 7.1.5-201.fc44.x86_64 $entry_type || exit 0 if [ -x /usr/bin/weak-modules ] then /usr/bin/weak-modules --remove-kernel 7.1.5-201.fc44.x86_64 || exit 0 fi posttrans scriptlet (using /bin/sh): rm -f /var/lib/rpm-state/kernel/installing_core_7.1.5-201.fc44.x86_64 /bin/kernel-install add 7.1.5-201.fc44.x86_64 /lib/modules/7.1.5-201.fc44.x86_64/vmlinuz || exit 0 if [[ ! -e "/boot/symvers-7.1.5-201.fc44.x86_64.xz" ]]; then cp "/lib/modules/7.1.5-201.fc44.x86_64/symvers.xz" "/boot/symvers-7.1.5-201.fc44.x86_64.xz" if command -v restorecon &>/dev/null; then restorecon "/boot/symvers-7.1.5-201.fc44.x86_64.xz" fi fi === And it looks like, right after unpacking, `/bin/kernel-install` is called to actually add the kernel to `/boot`. It also checks if the symvers for the new kernel exists and copies one over if it doesn't. That seemed to happen in my reproducer as I got the new initramfs you mention as well as the new symvers file. According to the `kernel-install` help, it does indeed work to move the new kernel to a boot partition; === # kernel-install --help | head -3 kernel-install [OPTIONS...] COMMAND ... Add and remove kernel and initrd images to and from the boot partition. === `/bin/kernel-install` is owned exclusively by `systemd-udevd` at least according to my fresh install of fedora on a test vm; === # rpm -qf /bin/kernel-install systemd-udev-259.8-1.fc44.x86_64 === I tried to take a look at the systemd source to see where this script may be built and where the `add` parameter may be used for it. It _seems_ to be here: https://github.com/systemd/systemd/blob/efc207d7abba8b5545a18feac21b3e91cca11aea/src/kernel-install/kernel-install.c#L1196 especially because the help message right before says "Add a kernel and initrd images to the boot partition". Interestingly, I am able to reproduce the issue as well if I extract the posttrans% to a standalone script, e.g. `echo '#!/bin/sh' > posttrans.sh && rpm -q --queryformat '[%{POSTTRANS}]' ./kernel-core-7.1.5-201.fc44.x86_64.rpm >> posttrans.sh && chmod +x posttrans.sh && ./posttrans.sh` Likewise, running `/bin/kernel-install add 7.1.5-201.fc44.x86_64 /lib/modules/7.1.5-201.fc44.x86_64/vmlinuz` also reproduces the issue even when `/lib/modules/7.1.5-201.fc44.x86_64` has everything in it. Given this, I think this needs to go to systemd at this point. As far as I can tell, the systemd kernel-install script provided from systemd-udevd is not properly installing the kernel at this point and needs someone's expertise from that component.
I _think_ the component for this should be systemd to help get someone with that knowledge to look but please reach out if this is wrong.
(In reply to Charles Haithcock from comment #15) > Given this, I think this needs to go to systemd at this point. As far as I > can tell, the systemd kernel-install script provided from systemd-udevd is > not properly installing the kernel at this point and needs someone's > expertise from that component. kernel-install doesn't install anything by itself. It just sets up a bunch on env. vars and then runs scripts from /usr/lib/kernel/install.d/ that do the actual work. If there's no install script that creates /boot/foo, /boot/foo won't be created.
IOW, if /usr/lib/kernel/install.d/20-grub.install , which would copy vmlinuz to /boot, is not present on the system, then _some other package_ has to step in and provide a similar install script. I don't think that package should be systemd, though.
This is what kernel installation looks like here using the /etc/kernel/install.d/20-grub.install workaround: # inxi -S System: Host: ab250 Kernel: 6.19.14-200.fc43.x86_64 arch: x86_64 bits: 64 Console: pty pts/1 Distro: Fedora Linux 43 (Forty Three) # rpm -qa | grep grub # ls -gGh /etc/kernel/install.d/ -rwxr-xr-x 1 9.4K Apr 7 20:00 20-grub.install # from grub-common-2.12-43.fc43.noarch.rpm # rpm -ivh kernel-core-7.0.14-101.fc43.x86_64.rpm kernel-7.0.14-101.fc43.x86_64.rpm kernel-modules-7.0.14-101.fc43.x86_64.rpm kernel-modules-core-7.0.14-101.fc43.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:kernel-core-7.0.14-101.fc43 ################################# [ 25%] 2:kernel-modules-core-7.0.14-101.fc################################# [ 50%] 3:kernel-modules-7.0.14-101.fc43 ################################# [ 75%] 4:kernel-7.0.14-101.fc43 ################################# [100%] /etc/kernel/install.d/20-grub.install: line 128: grub2-get-kernel-settings: command not found /etc/kernel/install.d/20-grub.install: line 140: grub2-probe: command not found /etc/kernel/install.d/20-grub.install: line 140: grub2-probe: command not found /etc/kernel/install.d/20-grub.install: line 143: grub2-mkrelpath: command not found dirname: missing operand Try 'dirname --help' for more information. # ls -gGh /boot/vmlinuz* /boot/initra* -rw------- 1 29M May 22 19:24 /boot/initramfs-6.18.16-200.fc43.x86_64.img -rw------- 1 29M Jul 3 10:21 /boot/initramfs-6.19.14-200.fc43.x86_64.img -rw------- 1 29M Aug 7 10:11 /boot/initramfs-7.0.14-101.fc43.x86_64.img -rwxr-xr-x 1 18M Mar 3 19:00 /boot/vmlinuz-6.18.16-200.fc43.x86_64 -rwxr-xr-x 1 18M Apr 22 20:00 /boot/vmlinuz-6.19.14-200.fc43.x86_64 -rwxr-xr-x 1 18M Jun 30 20:00 /boot/vmlinuz-7.0.14-101.fc43.x86_64
> kernel-install doesn't install anything by itself. It just sets up a bunch on env. vars and then runs scripts from /usr/lib/kernel/install.d/ that do the actual work. If there's no install script that creates /boot/foo, /boot/foo won't be created. Ah good to know, and helps keep installation as generic as possible. Thank you for that clarification! Unfortunately, I believe at this point, this configuration would require new features. UEFI boot without a bootloader is possible, but general support for it is tenuous at best; bootc, for example, has the option to boot without a bootloader (https://bootc.dev/bootc/bootloaders.html#none) but comes with a number of restrictions. Furthermore, this shouldn't fall in the purview of systemd, and doesn't quite make sense to require grub to be installed when not booting from grub. Since we are booting straight from uefi, it may need to be an addition to the kernel in some capacity, thus the need for a new feature. However, fedora doesn't currently have any configurations which support this. We also have no other reports of interest in this sort of functionality, so filing an RFE for this would likely not go much anywhere for a very long time. In moving forward, a custom script to copy over the vmlinuz is what will be needed if you prefer to continue building fedora without grub packages installed. Alternatively, the grub install script could instead just be added to the builds. If we end up with a number of other reports relying on this sort of boot method or for requests to expand supported boot options to boot without a bootloader, then we can absolutely revisit this report. I'll leave this open for the time being however to field any additional questions.
This issue is not EFI-specific; the same issue exists with legacy BIOS installations. Among others I'm sure, Debian, Mageia, Mint, openSUSE, openMandriva, & Ubuntu kernel installations do not require an installed bootloader for a kernel rpm or deb installation to result in traditional kernel placement in /boot/, even if only a symlink into /usr/lib/modules/.
This is a lengthy update, so here's a summary to hopefully help make it digestible; - The kernel itself delegates installation methods to the distros - Most distros use a tool external to the kernel packages to install the kernel - Removing the packages that provide said tooling will break kernel installation/updates and require manual intervention regardless of distro - An RFE would be required for fedora to explore a bootloader-agnostic tool to install the kernel, but the interest is not yet there to substantiate such for now. deb-based distro still utilize scripts provided from external packages to the core kernel to faciliate moving over. In double checking on my debian 13 vm, the postinst debian script for the kernel is as follows; === root@debian:~# cat /var/lib/dpkg/info/linux-image-6.12.101+deb13-amd64.postinst #!/bin/sh -e version=6.12.101+deb13-amd64 image_path=/boot/vmlinuz-$version if [ "$1" != configure ]; then exit 0 fi depmod $version if [ -f /lib/modules/$version/.fresh-install ]; then change=install else change=upgrade fi linux-update-symlinks $change $version $image_path rm -f /lib/modules/$version/.fresh-install linux-run-hooks image postinst $version $image_path -- "$@" exit 0 === linux-update-symlinks is ultimately responsible for creating the symlinks mentioned, but both linux-update-symlinks and linux-run-hooks are provided from the external package, linux-base; === root@debian:~# dpkg -S /usr/bin/linux-update-symlinks linux-base: /usr/bin/linux-update-symlinks === For both rpm-based and deb-based linux kernels, the kernel itself is installed to a location and some tooling external to the kernel is used to make sure the vmlinuz shows up somewhere in /boot, the main difference of course is rpm generally uses systemd's kernel-install which simply runs one or more additional scripts provided from other packages (e.g. grub2*) while deb uses scripts provided from linux-base. If the package providing the scripts to actually move the kernel over in either scenario, then the vmlinuz file will not show up under /boot. As an aside, the kernel source itself can install a kernel via `make install` which calls scripts/install.sh and that seems to attempt to call /sbin/installkernel provided from the distro if available or the install script provided in the source itself under arch/ (e.g. arch/x86/boot/install.sh). However, /sbin/installkernel seems to be copied over from or symlinked from some script/binary provided from an external package. In fedora, this is the same thing as /bin/kernel-install, while on debian it seems to be just /usr/sbin/installkernel provided from debianutils. The fallback per-arch install scripts seem to be far less capable however, as they seem to just literally use `mv`. Overall, the consensus, on the surface at least, across distros is to have actual installation of a kernel generally rely on external tooling. If the external tooling is removed, then appropriate handling of kernel installation will break. This does mean that the installation method is simplified for the kernel itself due to being delegated to the distros since the kernel does not need to additionally maintain the different potential ways a kernel needs to be installed (including using different inits, different tools to manage kernel parameters, etc). That does mean for fedora, the chosen implementation is with grub (or bootc for fedora atomic/silverblue). Implementing a bootloader-agnostic method of appropriately installing kernels would help decouple the kernel itself a bit further from a bootloader but would certainly require an RFE at this point. If additional interest elsewhere arises on this point, we can absolutely look into it. It would, however, be _heavily_ scrutinized as this would, eventually, change how rhel/coreos boots as well. I hope this helps explain the difficulties in the request!