[support] TW rpm kernel installation randomly skips creating initrd-<version> file
I haven't been counting, nor tracking where, but it just happened again, probably about number 6. Follow-up by creating one with dracut is a nuisance, but has succeeded every time so far. # inxi -SC System: Host: g5eas Kernel: 6.6.28-1-longterm arch: x86_64 bits: 64 Console: pty pts/2 Distro: openSUSE Tumbleweed 20240512 CPU: Info: single core model: Intel Pentium 4 bits: 64 type: MT cache: L2: 2 MiB Speed (MHz): avg: 3200 min/max: N/A cores: 1: 3200 2: 3200 # zypsek zypper --no-refresh se -sx kernel-default kernel-longterm | grep -Ev 'srcp|oading|eading' | grep -E 'x86_64|noarch' il | kernel-default | package | 6.5.9-1.3 | x86_64 | (System Packages) il | kernel-default | package | 6.4.12-1.13 | x86_64 | (System Packages) vl | kernel-default | package | 6.8.8-1.1 | x86_64 | OSS il | kernel-longterm | package | 6.6.28-1.1 | x86_64 | (System Packages) il | kernel-longterm | package | 6.6.23-1.1 | x86_64 | (System Packages) vl | kernel-longterm | package | 6.6.30-1.1 | x86_64 | OSS # time rpm -ivh /nfs/00srv/pub/Linux/Suse/Factory/kernel-longterm-6.6.30-1.1.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:kernel-longterm-6.6.30-1.1 ################################# [100%] real 0m50.089s user 0m46.108s sys 0m2.937s # ls -gGl initrd-6* vmlinuz-6* -rw------- 1 16298676 Oct 6 2023 initrd-6.4.12-1-default -rw------- 1 17166784 Nov 21 22:21 initrd-6.5.9-1-default -rw------- 1 17270132 Mar 30 22:17 initrd-6.6.23-1-longterm -rw------- 1 17255168 Apr 24 01:09 initrd-6.6.28-1-longterm lrwxrwxrwx 1 43 Oct 6 2023 vmlinuz-6.4.12-1-default -> ../usr/lib/modules/6.4.12-1-default/vmlinuz lrwxrwxrwx 1 42 Nov 21 22:20 vmlinuz-6.5.9-1-default -> ../usr/lib/modules/6.5.9-1-default/vmlinuz lrwxrwxrwx 1 44 Mar 30 22:17 vmlinuz-6.6.23-1-longterm -> ../usr/lib/modules/6.6.23-1-longterm/vmlinuz lrwxrwxrwx 1 44 Apr 24 01:08 vmlinuz-6.6.28-1-longterm -> ../usr/lib/modules/6.6.28-1-longterm/vmlinuz lrwxrwxrwx 1 44 May 13 23:14 vmlinuz-6.6.30-1-longterm -> ../usr/lib/modules/6.6.30-1-longterm/vmlinuz # journalctl -b | grep racut # nothing noteworthy in dmesg May 13 17:40:44 g5eas systemd[1]: Starting dracut ask for additional cmdline parameters... May 13 17:40:44 g5eas systemd[1]: Finished dracut ask for additional cmdline parameters. May 13 17:40:44 g5eas systemd[1]: Starting dracut cmdline hook... May 13 17:40:44 g5eas dracut-cmdline[193]: dracut-059+suse.563.g4900899a-1.1 May 13 17:40:44 g5eas dracut-cmdline[193]: Using kernel command line parameters: root=LABEL=m25p15stw rootfstype=ext4 rootflags=rw,noatime root=LABEL=m25p15stw ipv6.disable=1 net.ifnames=0 noresume consoleblank=0 mitigations=off vga=791 video=1440x900@60 drm.debug=0x1e log_bug_len=2M May 13 17:40:44 g5eas systemd[1]: Finished dracut cmdline hook. May 13 17:40:45 g5eas systemd[1]: Starting dracut pre-udev hook... May 13 17:40:45 g5eas systemd[1]: Finished dracut pre-udev hook. May 13 17:40:45 g5eas systemd[1]: dracut pre-trigger hook was skipped because no trigger condition checks were met. May 13 17:40:45 g5eas systemd[1]: Starting dracut initqueue hook... May 13 17:40:48 g5eas systemd[1]: Finished dracut initqueue hook. May 13 17:40:48 g5eas systemd[1]: dracut pre-mount hook was skipped because no trigger condition checks were met. May 13 17:40:49 g5eas systemd[1]: dracut mount hook was skipped because no trigger condition checks were met. May 13 17:40:49 g5eas systemd[1]: dracut pre-pivot and cleanup hook was skipped because no trigger condition checks were met. May 13 17:40:49 g5eas systemd[1]: dracut-initqueue.service: Deactivated successfully. May 13 17:40:49 g5eas systemd[1]: Stopped dracut initqueue hook. May 13 17:40:49 g5eas systemd[1]: dracut-pre-udev.service: Deactivated successfully. May 13 17:40:49 g5eas systemd[1]: Stopped dracut pre-udev hook. May 13 17:40:49 g5eas systemd[1]: dracut-cmdline.service: Deactivated successfully. May 13 17:40:49 g5eas systemd[1]: Stopped dracut cmdline hook. May 13 17:40:49 g5eas systemd[1]: dracut-cmdline-ask.service: Deactivated successfully. May 13 17:40:49 g5eas systemd[1]: Stopped dracut ask for additional cmdline parameters. May 13 22:59:09 g5eas [RPM][3695]: erase dracut-059+suse.563.g4900899a-1.1.x86_64: success May 13 22:59:09 g5eas [RPM][3695]: install dracut-059+suse.581.g19b7c06c-1.1.x86_64: success May 13 22:59:09 g5eas [RPM][3695]: erase dracut-059+suse.563.g4900899a-1.1.x86_64: success May 13 22:59:09 g5eas [RPM][3695]: install dracut-059+suse.581.g19b7c06c-1.1.x86_64: success # dracut --kver 6.6.30-1-longterm dracut[I]: Executing: /usr/bin/dracut --kver 6.6.30-1-longterm dracut[I]: Module 'systemd-coredump' will not be installed, because command 'coredumpctl' could not be found! dracut[I]: Module 'systemd-coredump' will not be installed, because command '/usr/lib/systemd/systemd-coredump' could not be found! dracut[I]: Module 'systemd-pcrphase' will not be installed, because command '/usr/lib/systemd/systemd-pcrextend' could not be found! dracut[I]: Module 'systemd-portabled' will not be installed, because command 'portablectl' could not be found! dracut[I]: Module 'systemd-portabled' will not be installed, because command '/usr/lib/systemd/systemd-portabled' could not be found! dracut[I]: Module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found! dracut[I]: Module 'connman' will not be installed, because command 'connmand' could not be found! dracut[I]: Module 'connman' will not be installed, because command 'connmanctl' could not be found! dracut[I]: Module 'connman' will not be installed, because command 'connmand-wait-online' could not be found! dracut[I]: 35network-legacy: Could not find any command of 'dhclient wicked'! dracut[I]: Module 'network-manager' will not be installed, because command 'NetworkManager' could not be found! dracut[I]: 62bluetooth: Could not find any command of '/usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd'! dracut[I]: Module 'lvmmerge' will not be installed, because command 'lvm' could not be found! dracut[I]: Module 'lvmthinpool-monitor' will not be installed, because command 'lvm' could not be found! dracut[I]: Module 'btrfs' will not be installed, because command 'btrfs' could not be found! dracut[I]: Module 'dmraid' will not be installed, because command 'dmraid' could not be found! dracut[I]: Module 'lvm' will not be installed, because command 'lvm' could not be found! dracut[I]: Module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found! dracut[I]: Module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found! dracut[I]: Module 'iscsi' will not be installed, because command 'iscsiadm' could not be found! dracut[I]: Module 'iscsi' will not be installed, because command 'iscsid' could not be found! dracut[I]: Module 'nvmf' will not be installed, because command 'nvme' could not be found! dracut[I]: Module 'nvmf' will not be installed, because command 'jq' could not be found! dracut[I]: Module 'biosdevname' will not be installed, because command 'biosdevname' could not be found! dracut[I]: Module 'memstrack' will not be installed, because command 'memstrack' could not be found! dracut[I]: memstrack is not available dracut[I]: If you need to use rd.memdebug>=4, please install memstrack and procps-ng dracut[I]: Module 'squash' will not be installed, because command 'mksquashfs' could not be found! dracut[I]: Module 'squash' will not be installed, because command 'unsquashfs' could not be found! dracut[I]: Module 'systemd-coredump' will not be installed, because command 'coredumpctl' could not be found! dracut[I]: Module 'systemd-coredump' will not be installed, because command '/usr/lib/systemd/systemd-coredump' could not be found! dracut[I]: Module 'systemd-pcrphase' will not be installed, because command '/usr/lib/systemd/systemd-pcrextend' could not be found! dracut[I]: Module 'systemd-portabled' will not be installed, because command 'portablectl' could not be found! dracut[I]: Module 'systemd-portabled' will not be installed, because command '/usr/lib/systemd/systemd-portabled' could not be found! dracut[I]: Module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found! dracut[I]: Module 'connman' will not be installed, because command 'connmand' could not be found! dracut[I]: Module 'connman' will not be installed, because command 'connmanctl' could not be found! dracut[I]: Module 'connman' will not be installed, because command 'connmand-wait-online' could not be found! dracut[I]: 35network-legacy: Could not find any command of 'dhclient wicked'! dracut[I]: Module 'network-manager' will not be installed, because command 'NetworkManager' could not be found! dracut[I]: 62bluetooth: Could not find any command of '/usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd'! dracut[I]: Module 'lvmmerge' will not be installed, because command 'lvm' could not be found! dracut[I]: Module 'lvmthinpool-monitor' will not be installed, because command 'lvm' could not be found! dracut[I]: Module 'btrfs' will not be installed, because command 'btrfs' could not be found! dracut[I]: Module 'dmraid' will not be installed, because command 'dmraid' could not be found! dracut[I]: Module 'lvm' will not be installed, because command 'lvm' could not be found! dracut[I]: Module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found! dracut[I]: Module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found! dracut[I]: Module 'iscsi' will not be installed, because command 'iscsiadm' could not be found! dracut[I]: Module 'iscsi' will not be installed, because command 'iscsid' could not be found! dracut[I]: Module 'nvmf' will not be installed, because command 'nvme' could not be found! dracut[I]: Module 'nvmf' will not be installed, because command 'jq' could not be found! dracut[I]: Module 'memstrack' will not be installed, because command 'memstrack' could not be found! dracut[I]: memstrack is not available dracut[I]: If you need to use rd.memdebug>=4, please install memstrack and procps-ng dracut[I]: Module 'squash' will not be installed, because command 'mksquashfs' could not be found! dracut[I]: Module 'squash' will not be installed, because command 'unsquashfs' could not be found! dracut[I]: *** Including module: systemd *** dracut[I]: *** Including module: systemd-initrd *** dracut[I]: *** Including module: rngd *** dracut[I]: *** Including module: i18n *** dracut[I]: *** Including module: kernel-modules *** dracut[I]: *** Including module: kernel-modules-extra *** dracut[I]: *** Including module: rootfs-block *** dracut[I]: *** Including module: terminfo *** dracut[I]: *** Including module: udev-rules *** dracut[I]: *** Including module: dracut-systemd *** dracut[I]: *** Including module: usrmount *** dracut[I]: *** Including module: base *** dracut[I]: *** Including module: fs-lib *** dracut[I]: *** Including module: shutdown *** dracut[I]: *** Including module: suse *** dracut[I]: *** Including module: suse-initrd *** dracut[I]: *** Including modules done *** dracut[I]: *** Installing kernel module dependencies *** dracut[I]: *** Installing kernel module dependencies done *** dracut[I]: *** Resolving executable dependencies *** dracut[I]: *** Resolving executable dependencies done *** dracut[I]: *** Hardlinking files *** dracut[I]: *** Hardlinking files done *** dracut[I]: *** Generating early-microcode cpio image *** dracut[I]: *** Constructing GenuineIntel.bin *** dracut[I]: *** Store current command line parameters *** dracut[I]: Stored kernel commandline: dracut[I]: root=LABEL=m25p15stw rootfstype=ext4 rootflags=rw,noatime dracut[I]: *** Stripping files *** dracut[I]: *** Stripping files done *** dracut[I]: *** Creating image file '/boot/initrd-6.6.30-1-longterm' *** dracut[I]: *** Creating initramfs image file '/boot/initrd-6.6.30-1-longterm' done *** # ls -gGl initrd-6* vmlinuz-6* initrd vmlinuz lrwxrwxrwx 1 24 May 13 23:14 initrd -> initrd-6.6.30-1-longterm -rw------- 1 16298676 Oct 6 2023 initrd-6.4.12-1-default -rw------- 1 17166784 Nov 21 22:21 initrd-6.5.9-1-default -rw------- 1 17270132 Mar 30 22:17 initrd-6.6.23-1-longterm -rw------- 1 17255168 Apr 24 01:09 initrd-6.6.28-1-longterm -rw------- 1 17351844 May 13 23:33 initrd-6.6.30-1-longterm lrwxrwxrwx 1 25 May 13 23:14 vmlinuz -> vmlinuz-6.6.30-1-longterm lrwxrwxrwx 1 43 Oct 6 2023 vmlinuz-6.4.12-1-default -> ../usr/lib/modules/6.4.12-1-default/vmlinuz lrwxrwxrwx 1 42 Nov 21 22:20 vmlinuz-6.5.9-1-default -> ../usr/lib/modules/6.5.9-1-default/vmlinuz lrwxrwxrwx 1 44 Mar 30 22:17 vmlinuz-6.6.23-1-longterm -> ../usr/lib/modules/6.6.23-1-longterm/vmlinuz lrwxrwxrwx 1 44 Apr 24 01:08 vmlinuz-6.6.28-1-longterm -> ../usr/lib/modules/6.6.28-1-longterm/vmlinuz lrwxrwxrwx 1 44 May 13 23:14 vmlinuz-6.6.30-1-longterm -> ../usr/lib/modules/6.6.30-1-longterm/vmlinuz # It boots. What should I be looking for? -- 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
Andrei Borzenkov composed on 2024-05-14 07:27 (UTC+0300):
Felix Miata wrote:
# time rpm -ivh /nfs/00srv/pub/Linux/Suse/Factory/kernel-longterm-6.6.30-1.1.x86_64.rpm
That is not "rpm kernel". That is the one single package kernel-longterm.
String "rpm kernel" was not part of my thread starter's content. In subject, I used rpm as an activity, as opposed to one alternative "zypper in kernel". I have no idea what message you tried to convey by your two sentences.
What should I be looking for?
rpm -q --scripts kernel-longterm
Does it matter whether it's run before or after any particular kernel in question is installed? I ran it after installing kernel-longterm-6.6.30-1.1.x86_64.rpm in a different host just minutes ago, after having had success using exactly the same command (above quoted) to install the exact same kernel as I did on the host from which my OP was born. I recognize nothing in its output that answers my question why no initrd was created. My understanding of variable usage in scripts is little more than zero: # rpm -q --scripts kernel-longterm preinstall scriptlet (using /bin/sh): run_if_exists() { if [ -x "$1" ] ; then "$@" else echo Cannot execute "$1" >&2 fi } run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-pre --name "kernel-longterm" \ --version "6.6.22" --release "1.1" --kernelrelease "6.6.22-1" \ --image "vmlinuz" --flavor "longterm" --variant "-longterm" \ --usrmerged "01" --certs "1F673297 " "$@" postinstall scriptlet (using /bin/sh): run_if_exists() { if [ -x "$1" ] ; then "$@" else echo Cannot execute "$1" >&2 fi } run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-post --name "kernel-longterm" \ --version "6.6.22" --release "1.1" --kernelrelease "6.6.22-1" \ --image "vmlinuz" --flavor "longterm" --variant "-longterm" \ --usrmerged "01" --certs "1F673297 " "$@" preuninstall scriptlet (using /bin/sh): run_if_exists() { if [ -x "$1" ] ; then "$@" else echo Cannot execute "$1" >&2 fi } run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "kernel-longterm" \ --version "6.6.22" --release "1.1" --kernelrelease "6.6.22-1" \ --image "vmlinuz" --flavor "longterm" --variant "-longterm" \ --usrmerged "01" --certs "1F673297 " "$@" postuninstall scriptlet (using /bin/sh): run_if_exists() { if [ -x "$1" ] ; then "$@" else echo Cannot execute "$1" >&2 fi } run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "kernel-longterm" \ --version "6.6.22" --release "1.1" --kernelrelease "6.6.22-1" \ --image "vmlinuz" --flavor "longterm" --variant "-longterm" \ --usrmerged "01" --certs "1F673297 " "$@" posttrans scriptlet (using /bin/sh): run_if_exists() { if [ -x "$1" ] ; then "$@" else echo Cannot execute "$1" >&2 fi } run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-posttrans --name "kernel-longterm" \ --version "6.6.22" --release "1.1" --kernelrelease "6.6.22-1" \ --image "vmlinuz" --flavor "longterm" --variant "-longterm" \ --usrmerged "01" --certs "1F673297 " "$@" preinstall scriptlet (using /bin/sh): run_if_exists() { if [ -x "$1" ] ; then "$@" else echo Cannot execute "$1" >&2 fi } run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-pre --name "kernel-longterm" \ --version "6.6.30" --release "1.1" --kernelrelease "6.6.30-1" \ --image "vmlinuz" --flavor "longterm" --variant "-longterm" \ --usrmerged "01" --certs "1F673297 " "$@" postinstall scriptlet (using /bin/sh): run_if_exists() { if [ -x "$1" ] ; then "$@" else echo Cannot execute "$1" >&2 fi } run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-post --name "kernel-longterm" \ --version "6.6.30" --release "1.1" --kernelrelease "6.6.30-1" \ --image "vmlinuz" --flavor "longterm" --variant "-longterm" \ --usrmerged "01" --certs "1F673297 " "$@" preuninstall scriptlet (using /bin/sh): run_if_exists() { if [ -x "$1" ] ; then "$@" else echo Cannot execute "$1" >&2 fi } run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "kernel-longterm" \ --version "6.6.30" --release "1.1" --kernelrelease "6.6.30-1" \ --image "vmlinuz" --flavor "longterm" --variant "-longterm" \ --usrmerged "01" --certs "1F673297 " "$@" postuninstall scriptlet (using /bin/sh): run_if_exists() { if [ -x "$1" ] ; then "$@" else echo Cannot execute "$1" >&2 fi } run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "kernel-longterm" \ --version "6.6.30" --release "1.1" --kernelrelease "6.6.30-1" \ --image "vmlinuz" --flavor "longterm" --variant "-longterm" \ --usrmerged "01" --certs "1F673297 " "$@" posttrans scriptlet (using /bin/sh): run_if_exists() { if [ -x "$1" ] ; then "$@" else echo Cannot execute "$1" >&2 fi } run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-posttrans --name "kernel-longterm" \ --version "6.6.30" --release "1.1" --kernelrelease "6.6.30-1" \ --image "vmlinuz" --flavor "longterm" --variant "-longterm" \ --usrmerged "01" --certs "1F673297 " "$@" # rpm -q --scripts kernel-longterm | grep dracut # To be clear, the reason for the thread is that in recent months, using rpm to install a previously cached kernel rpm has resulted, in apparently random instances, in no evidence that dracut, or any other initrd creation utility that may exist, was called as a consequence of running rpm -ivh kernel-<flavor>-<version> and no initrd for the newly present vmlinuz-<version>-<flavor> file was found. -- 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
participants (2)
-
Andrei Borzenkov
-
Felix Miata