Zypper rebuilding initrd for non-installed kernels after updates (Tumbleweed)
I all. I've noticed that after doing a zypper dup on Tumbleweed, if a rebuild of initrd is triggered by the update, it is rebuilding initrd for multiple superseded kernel versions that are no longer installed. [I'm usually rebuilding the kernel after a kernel update because I have a module that I need that is not yet included in the mainline kernel tree (I have no idea of the status of that).] After tonight's update, /boot looks like this: -rw-r--r-- 1 root root 65 Mar 20 13:16 .vmlinuz-5.16.15-1-default.hmac -rw-r--r-- 1 root root 65 Apr 1 11:23 .vmlinuz-5.17.1-1-default.hmac -rw-r--r-- 1 root root 5276522 Mar 24 23:38 System.map-5.16.15-1-default -rw-r--r-- 1 root root 5319175 Apr 3 12:29 System.map-5.17.1-1-default -rw-r--r-- 1 root root 5949156 Apr 1 08:15 System.map-5.17.1-1-default.old -rw------- 1 root root 512 Jan 20 2013 backup_mbr -rw-r--r-- 1 root root 1725 Apr 9 10:55 boot.readme -rw-r--r-- 1 root root 254939 Mar 24 23:32 config-5.16.15-1-default -rw-r--r-- 1 root root 257278 Apr 3 12:25 config-5.17.1-1-default -rw-r--r-- 1 root root 258046 Apr 1 06:24 config-5.17.1-1-default.old drwxr-xr-x 2 root root 4096 Feb 1 17:27 grub drwxr-xr-x 6 root root 4096 Apr 10 21:51 grub2 lrwxrwxrwx 1 root root 5 Mar 17 2013 grub2-efi.rpmsave -> grub2 lrwxrwxrwx 1 root root 23 Apr 3 12:16 initrd -> initrd-5.17.1-1-default -rw------- 1 root root 23981000 Apr 10 21:52 initrd-5.15.12-1-default -rw------- 1 root root 23976628 Apr 10 21:52 initrd-5.15.5-1-default -rw------- 1 root root 23975614 Apr 10 21:52 initrd-5.15.6-1-default -rw------- 1 root root 23975941 Apr 10 21:52 initrd-5.15.7-1-default -rw------- 1 root root 23977541 Apr 10 21:52 initrd-5.15.8-1-default -rw------- 1 root root 23964199 Apr 10 21:52 initrd-5.16.0-1-default -rw------- 1 root root 23965252 Apr 10 21:53 initrd-5.16.11-1-default -rw------- 1 root root 76539957 Apr 10 21:53 initrd-5.16.15-1-default -rw------- 1 root root 23962909 Apr 10 21:53 initrd-5.16.2-1-default -rw------- 1 root root 23969204 Apr 10 21:53 initrd-5.16.4-1-default -rw------- 1 root root 23968361 Apr 10 21:53 initrd-5.16.5-1-default -rw------- 1 root root 23967863 Apr 10 21:53 initrd-5.16.8-1-default -rw------- 1 root root 76644048 Apr 10 21:54 initrd-5.17.1-1-default -rw-r--r-- 1 root root 11264 Jan 12 2018 intel-ucode.img drwx------ 2 root root 16384 Jan 20 2013 lost+found -rw-r--r-- 1 root root 421888 Apr 10 21:50 message -rw-r--r-- 1 root root 484 Mar 20 10:37 sysctl.conf-5.16.15-1-default -rw-r--r-- 1 root root 484 Apr 1 08:44 sysctl.conf-5.17.1-1-default -rw-r--r-- 1 root root 16064205 Mar 15 13:55 vmlinux-5.16.14-1-default.gz -rw-r--r-- 1 root root 16063282 Mar 24 23:49 vmlinux-5.16.15-1-default.gz -rw-r--r-- 1 root root 16427005 Apr 3 12:40 vmlinux-5.17.1-1-default.gz lrwxrwxrwx 1 root root 24 Apr 3 12:16 vmlinuz -> vmlinuz-5.17.1-1- default -rw-r--r-- 1 root root 10051296 Mar 24 23:38 vmlinuz-5.16.15-1-default -rw-r--r-- 1 root root 10188800 Apr 3 12:29 vmlinuz-5.17.1-1-default -rw-r--r-- 1 root root 11775056 Apr 1 11:23 vmlinuz-5.17.1-1-default.old Zypper -iv kernel-default shows; S | Name | Type | Version | Arch | Repository ---+----------------------+---------+-------------+-------- +---------------------- i+ | kernel-default | package | 5.17.1-1.2 | x86_64 | Main Repository (OSS) name: kernel-default i+ | kernel-default | package | 5.16.15-1.1 | x86_64 | (System Packages) name: kernel-default i+ | kernel-default-devel | package | 5.17.1-1.2 | x86_64 | Main Repository (OSS) name: kernel-default-devel i+ | kernel-default-devel | package | 5.16.15-1.1 | x86_64 | (System Packages) name: kernel-default-devel So the only initrd's that I'd expect to be rebuilt would be for 5.16.15-1-1 and 5.17.1-1, not all the previous 5.15 and 5.16 versions as well. Is this configured somewhere that I can't find? Thanks in advance, Rodney. -- ================================================================================================================== Rodney Baker rodney.baker@iinet.net.au ==================================================================================================================
On 10.04.2022 15:36, Rodney Baker wrote:
I all. I've noticed that after doing a zypper dup on Tumbleweed, if a rebuild of initrd is triggered by the update, it is rebuilding initrd for multiple superseded kernel versions that are no longer installed.
dracut --regenrate-all (which is run in this case) will build initrd for all kernels under /lib/modules. It is unrelated to the existence of RPM packages.
[I'm usually rebuilding the kernel after a kernel update because I have a module that I need that is not yet included in the mainline kernel tree (I have no idea of the status of that).]
After tonight's update, /boot looks like this:
-rw-r--r-- 1 root root 65 Mar 20 13:16 .vmlinuz-5.16.15-1-default.hmac -rw-r--r-- 1 root root 65 Apr 1 11:23 .vmlinuz-5.17.1-1-default.hmac -rw-r--r-- 1 root root 5276522 Mar 24 23:38 System.map-5.16.15-1-default -rw-r--r-- 1 root root 5319175 Apr 3 12:29 System.map-5.17.1-1-default -rw-r--r-- 1 root root 5949156 Apr 1 08:15 System.map-5.17.1-1-default.old -rw------- 1 root root 512 Jan 20 2013 backup_mbr -rw-r--r-- 1 root root 1725 Apr 9 10:55 boot.readme -rw-r--r-- 1 root root 254939 Mar 24 23:32 config-5.16.15-1-default -rw-r--r-- 1 root root 257278 Apr 3 12:25 config-5.17.1-1-default -rw-r--r-- 1 root root 258046 Apr 1 06:24 config-5.17.1-1-default.old drwxr-xr-x 2 root root 4096 Feb 1 17:27 grub drwxr-xr-x 6 root root 4096 Apr 10 21:51 grub2 lrwxrwxrwx 1 root root 5 Mar 17 2013 grub2-efi.rpmsave -> grub2 lrwxrwxrwx 1 root root 23 Apr 3 12:16 initrd -> initrd-5.17.1-1-default -rw------- 1 root root 23981000 Apr 10 21:52 initrd-5.15.12-1-default -rw------- 1 root root 23976628 Apr 10 21:52 initrd-5.15.5-1-default -rw------- 1 root root 23975614 Apr 10 21:52 initrd-5.15.6-1-default -rw------- 1 root root 23975941 Apr 10 21:52 initrd-5.15.7-1-default -rw------- 1 root root 23977541 Apr 10 21:52 initrd-5.15.8-1-default -rw------- 1 root root 23964199 Apr 10 21:52 initrd-5.16.0-1-default -rw------- 1 root root 23965252 Apr 10 21:53 initrd-5.16.11-1-default -rw------- 1 root root 76539957 Apr 10 21:53 initrd-5.16.15-1-default -rw------- 1 root root 23962909 Apr 10 21:53 initrd-5.16.2-1-default -rw------- 1 root root 23969204 Apr 10 21:53 initrd-5.16.4-1-default -rw------- 1 root root 23968361 Apr 10 21:53 initrd-5.16.5-1-default -rw------- 1 root root 23967863 Apr 10 21:53 initrd-5.16.8-1-default -rw------- 1 root root 76644048 Apr 10 21:54 initrd-5.17.1-1-default -rw-r--r-- 1 root root 11264 Jan 12 2018 intel-ucode.img drwx------ 2 root root 16384 Jan 20 2013 lost+found -rw-r--r-- 1 root root 421888 Apr 10 21:50 message -rw-r--r-- 1 root root 484 Mar 20 10:37 sysctl.conf-5.16.15-1-default -rw-r--r-- 1 root root 484 Apr 1 08:44 sysctl.conf-5.17.1-1-default -rw-r--r-- 1 root root 16064205 Mar 15 13:55 vmlinux-5.16.14-1-default.gz -rw-r--r-- 1 root root 16063282 Mar 24 23:49 vmlinux-5.16.15-1-default.gz -rw-r--r-- 1 root root 16427005 Apr 3 12:40 vmlinux-5.17.1-1-default.gz lrwxrwxrwx 1 root root 24 Apr 3 12:16 vmlinuz -> vmlinuz-5.17.1-1- default -rw-r--r-- 1 root root 10051296 Mar 24 23:38 vmlinuz-5.16.15-1-default -rw-r--r-- 1 root root 10188800 Apr 3 12:29 vmlinuz-5.17.1-1-default -rw-r--r-- 1 root root 11775056 Apr 1 11:23 vmlinuz-5.17.1-1-default.old
Zypper -iv kernel-default shows;
S | Name | Type | Version | Arch | Repository ---+----------------------+---------+-------------+-------- +---------------------- i+ | kernel-default | package | 5.17.1-1.2 | x86_64 | Main Repository (OSS) name: kernel-default i+ | kernel-default | package | 5.16.15-1.1 | x86_64 | (System Packages) name: kernel-default i+ | kernel-default-devel | package | 5.17.1-1.2 | x86_64 | Main Repository (OSS) name: kernel-default-devel i+ | kernel-default-devel | package | 5.16.15-1.1 | x86_64 | (System Packages) name: kernel-default-devel
So the only initrd's that I'd expect to be rebuilt would be for 5.16.15-1-1 and 5.17.1-1, not all the previous 5.15 and 5.16 versions as well.
Is this configured somewhere that I can't find?
Thanks in advance, Rodney.
Am 10.04.22 um 15:53 schrieb Andrei Borzenkov:
On 10.04.2022 15:36, Rodney Baker wrote:
I all. I've noticed that after doing a zypper dup on Tumbleweed, if a rebuild of initrd is triggered by the update, it is rebuilding initrd for multiple superseded kernel versions that are no longer installed.
dracut --regenrate-all (which is run in this case) will build initrd for all kernels under /lib/modules. It is unrelated to the existence of RPM packages.
Yes, I have the same problem. In my case there seems to be a missing cleanup for a DKMS built keyboard driver for my hardware. This causes the /lib/modules directories for old kernels to remain on my system. Br, Frank
On Sunday, 10 April 2022 11:23:07 PM ACST Andrei Borzenkov wrote:
On 10.04.2022 15:36, Rodney Baker wrote:
I all. I've noticed that after doing a zypper dup on Tumbleweed, if a rebuild of initrd is triggered by the update, it is rebuilding initrd for multiple superseded kernel versions that are no longer installed.
dracut --regenrate-all (which is run in this case) will build initrd for all kernels under /lib/modules. It is unrelated to the existence of RPM packages.
Ah, right, thanks Andrei. That makes sense. Regards, Rodney. -- ================================================================================================================== Rodney Baker rodney.baker@iinet.net.au ==================================================================================================================
participants (3)
-
Andrei Borzenkov
-
Frank Kunz
-
Rodney Baker