After upgrading to openSUSE Leap 15.4 with the command “zypper --releasever=15.4 dup” the computer hangs when booting with the error message “Kernel panic - not syncing: no working init found”.
How can this be fixed?
After upgrading to openSUSE Leap 15.4 with the command “zypper --releasever=15.4 dup” the computer hangs when booting with the error message “Kernel panic - not syncing: no working init found”.
How can this be fixed?
Are you certain that, you followed all the steps listed in the SDB?
Warning: It is strongly recommended that you run the upgrade outside the X-window graphical mode.
If you did the above dist upgrade before the official release date (e.g. 2022-06-08 for Leap 15.4), you may have installed a Release Candidate (RC) or a milestone version and will need to repeat the final zypper dup step now to receive the final release.
Perhaps a clean install of Leap 15.4.
You have not told us much, so we cannot guess what went wrong.
First I created a snapshot.
Then I updated the repositories by typing “zypper --releasever=15.4 ref”.
Before that I logged out from the GUI and changed to a virtual terminal by typing “Ctl-Alt-F1”.
I am able to boot into rescue system and:
mount /dev/md126p6 /mnt
mount --rbind /dev /mnt/dev
mount --rbind /sys /mnt/sys
mount --rbind /proc /mnt/proc
chroot /mnt
But I can not rollback. The .snapshots directory is empty.
In /boot I can find the kernel and initrd as shown in grub. When trying to install grub in YaST I get the error: “failed to lookup root id: inappropriate ioctl for device”. The command “mkinitrd” fails too with many errors.
You need to mount all btrfs subvolumes. In chroot
mount -a -t btrfs
If on EFI, you need to mount /boot/efi as well.
Wise users may anticipate that anything can go wrong. They may devise a procedure for reinstalling grub and test whether the procedure actually works:
Three years ago, repairing Grub was already an important issue. Since then, the computers have been switched to EFI and the system partition now uses btrfs instead of ext4. Reason enough to revise and test the procedure
Yes, but, did you edit the Repository entries as detailed in the SDB before you refreshed the Repositories?
[HR][/HR]Which doesn’t help with the recovery from the failed Upgrade –
After typing "mount -a -t btrfs in chroot environment I could see the snapshots with “snapper --no-dbus list”.
“mkinitrd” gives me the following output:
Creating initrd: /boot/initrd-5.14.21-150400.22-default
dracut: Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log --force /boot/initrd-5.14.21-150400.22-default 5.14.21-150400.22-default
dracut: dracut module 'systemd-coredump' will not be installed, because command 'coredumpctl' could not be found!
dracut: dracut module 'systemd-coredump' will not be installed, because command '/usr/lib/systemd/systemd-coredump' could not be found!
dracut: dracut module 'systemd-repart' will not be installed, because command 'systemd-repart' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: dracut module 'systemd-coredump' will not be installed, because command 'coredumpctl' could not be found!
dracut: dracut module 'systemd-coredump' will not be installed, because command '/usr/lib/systemd/systemd-coredump' could not be found!
dracut: dracut module 'systemd-repart' will not be installed, because command 'systemd-repart' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/lib/systemd/systemd'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/lib/systemd/systemd-cgroups-agent'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/lib/systemd/systemd-shutdown'
...
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/mount'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/mount'
dracut-install: ERROR: installing 'mount'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/mknod'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/mknod'
dracut-install: ERROR: installing 'mknod'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/mkdir'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/mkdir'
dracut-install: ERROR: installing 'mkdir'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/sleep'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/sleep'
dracut-install: ERROR: installing 'sleep'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/chroot'
dracut-install: ERROR: installing 'chroot'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/chown'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/chown'
dracut-install: ERROR: installing 'chown'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/sed'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/sed'
dracut-install: ERROR: installing 'sed'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/ls'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/ls'
dracut-install: ERROR: installing 'ls'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/flock'
dracut-install: ERROR: installing 'flock'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/cp'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/cp'
dracut-install: ERROR: installing 'cp'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/mv'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/mv'
dracut-install: ERROR: installing 'mv'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/dmesg'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/dmesg'
dracut-install: ERROR: installing 'dmesg'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/rm'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/rm'
dracut-install: ERROR: installing 'rm'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/ln'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/ln'
dracut-install: ERROR: installing 'ln'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/kmod'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/../bin/kmod'
dracut-install: ERROR: installing 'rmmod'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/mkfifo'
dracut-install: ERROR: installing 'mkfifo'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/umount'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/umount'
dracut-install: ERROR: installing 'umount'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/readlink'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/readlink'
dracut-install: ERROR: installing 'readlink'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/setsid'
dracut-install: ERROR: installing 'setsid'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/kmod'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/../bin/kmod'
dracut-install: ERROR: installing 'modprobe'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/chmod'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/chmod'
dracut-install: ERROR: installing 'chmod'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.gXqM43/initramfs -a -l mount mknod mkdir sleep chroot chown sed ls flock cp mv dmesg rm ln rmmod mkfifo umount readlink setsid modprobe chmod
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/findmnt'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/findmnt'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/less'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/kmod'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/lib/dracut/dracut-util'
dracut-install: ERROR: installing '/usr/lib/dracut/dracut-util' to '/usr/bin/dracut-util'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.gXqM43/initramfs -l /usr/lib/dracut/dracut-util /usr/bin/dracut-util
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/bin/bash'
dracut-install: ERROR: installing 'bash'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.gXqM43/initramfs -a -l bash
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/bin/sh'
dracut-install: ERROR: failed to install '/bin/sh'
dracut-install: ERROR: installing '/usr/lib/dracut/modules.d/99base/init.sh' to '/init'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.gXqM43/initramfs -l /usr/lib/dracut/modules.d/99base/init.sh /init
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/bin/sh'
dracut-install: ERROR: failed to install '/bin/sh'
dracut-install: ERROR: installing '/usr/lib/dracut/modules.d/99base/initqueue.sh' to '/sbin/initqueue'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.gXqM43/initramfs -l /usr/lib/dracut/modules.d/99base/initqueue.sh /sbin/initqueue
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/bin/sh'
dracut-install: ERROR: failed to install '/bin/sh'
dracut-install: ERROR: installing '/usr/lib/dracut/modules.d/99base/loginit.sh' to '/sbin/loginit'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.gXqM43/initramfs -l /usr/lib/dracut/modules.d/99base/loginit.sh /sbin/loginit
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/bin/sh'
dracut-install: ERROR: failed to install '/bin/sh'
dracut-install: ERROR: installing '/usr/lib/dracut/modules.d/99base/rdsosreport.sh' to '/sbin/rdsosreport'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.gXqM43/initramfs -l /usr/lib/dracut/modules.d/99base/rdsosreport.sh /sbin/rdsosreport
dracut: *** Including module: fs-lib ***
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/bin/sh'
dracut-install: ERROR: failed to install '/bin/sh'
dracut-install: ERROR: installing '/usr/lib/dracut/modules.d/99fs-lib/fs-lib.sh' to '/lib/fs-lib.sh'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.gXqM43/initramfs -l /usr/lib/dracut/modules.d/99fs-lib/fs-lib.sh /lib/fs-lib.sh
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/btrfs'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/btrfs'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/bin/sh'
dracut-install: ERROR: failed to install '/bin/sh'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/bin/sh'
dracut-install: ERROR: failed to install '/bin/sh'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/umount'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/umount'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/mount'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/mount'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/fsck'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/fsck'
dracut: *** Including module: shutdown ***
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/umount'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/umount'
dracut-install: ERROR: installing 'umount'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/systemctl'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/../bin/systemctl'
dracut-install: ERROR: installing 'poweroff'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/systemctl'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/../bin/systemctl'
dracut-install: ERROR: installing 'reboot'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/systemctl'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/../bin/systemctl'
dracut-install: ERROR: installing 'halt'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/losetup'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/losetup'
dracut-install: ERROR: installing 'losetup'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/stat'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/stat'
dracut-install: ERROR: installing 'stat'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/sleep'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/sleep'
dracut-install: ERROR: installing 'sleep'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/bin/timeout'
dracut-install: ERROR: installing 'timeout'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.gXqM43/initramfs -a -l umount poweroff reboot halt losetup stat sleep timeout
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/kexec'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/usr/sbin/kexec'
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/bin/sh'
dracut-install: ERROR: failed to install '/bin/sh'
dracut-install: ERROR: installing '/usr/lib/dracut/modules.d/99shutdown/shutdown.sh' to '/shutdown'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.gXqM43/initramfs -l /usr/lib/dracut/modules.d/99shutdown/shutdown.sh /shutdown
dracut: *** Including module: suse ***
dracut: *** Including module: suse-initrd ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode: real
dracut: Files: 705
dracut: Linked: 2 files
dracut: Compared: 0 xattrs
dracut: Compared: 84 files
dracut: Saved: 114,93 KiB
dracut: Duration: 0.007090 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing GenuineIntel.bin ***
dracut: *** Store current command line parameters ***
dracut: Stored kernel commandline:
dracut: rd.driver.pre=btrfs
dracut: rd.md.uuid=c2f544b8:a61e9d04:206a5ad1:990a977e
dracut: root=UUID=7f15eb88-c43e-4529-b681-625323e2e67b rootfstype=btrfs rootflags=rw,relatime,space_cache,subvolid=925,subvol=/@/.snapshots/134/snapshot,subvol=@/.snapshots/134/snapshot
dracut-install: ERROR: failed to install '/usr/bin/ldd:' for '/lib/libgcc_s.so.1'
dracut-install: ERROR: installing '/lib/libgcc_s.so.1'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.gXqM43/initramfs -a -l /lib/libgcc_s.so.1
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/boot/initrd-5.14.21-150400.22-default' ***
dracut: *** Creating initramfs image file '/boot/initrd-5.14.21-150400.22-default' done ***
I checked the install media and no errors were tetected. When trying to install from the install media I get the error: “device not found, name:/dev/md1p6”. This is my root partition and is listed with fdisk in install system with Id 83.
What exactly I had to edit in the repository entries?
dracut runs “ldd /path/to/binary” and gets line that starts with “/usr/bin/ldd:” which is normally not present. It misinterprets this line for library name.
Run
/usr/bin/dracut --debug --force /boot/initrd-5.14.21-150400.22-default 5.14.21-150400.22-default
and provide full output. It will be long, so run it under script:
script
/usr/bin/dracut --debug --force /boot/initrd-5.14.21-150400.22-default 5.14.21-150400.22-default
exit
and upload file typescript in the current directory to https://susepaste.org/
When you want to use the --releasever feature, you must be sure that all repository definitions have $releasever in their URLs at the correct place. Since some time this is set from the installation, but when you are using upgrades already for several releases, this is not dine by magic.
A check can be done with
zypper --releasever FOOBAR lr -d
Look at the URL column. When there are still 15.3 and/or 15.4 references, they are wrong. The string FOOBAR must be show in this list on those places (the --releasever is just a string replacement of the occurence of $releasever).
Or check all /etc/zypp/repos.d/*.repo files for the parameter baseurl=
grep baseurl /etc/zypp/repos.d/*.repo
Is it possible to upgrade from 15.2 directly to 15.4?
It might be possible (it is not that great a step), but I do not know if it is officially supported. From 15.3 > 15.4 is certainly tested before 15.4 was released. I doubt they took the trouble to test 15.2 > 15.4 or even greater steps. That all takes time and the normal case assumed is of course that you will have done 15.2 > 15.3 at least a few months ago.
Yes.
What makes you think that 15.3 > 15.4 is actually tested by “them”, whoever “they” are?
“They” is the community. I have seen many people here testing that. And it would be very strange IMO when a new version is released, including instructions how to upgrade when nobody at least reported he succeeded.
But maybe the new version is just thrown out to the world without testing what most people will start doing with it.
I just performed upgrade from Leap 15.2 to Leap 15.4 without any issues. Does it qualify as “community tested”?
Hi
Three upgrades performed here without issues, one thing I did do is terminal only and download first. Two were servers so only terminal the other my on the road laptop with WinX and GNOME DE…
I’ve done it too, like from 15.1 to 15.3, and 42.3 to 15.2, ad nauseum. Just because it’s officially “unsupported” doesn’t mean it can’t be done. TW and smart devs have made zypper abundantly competent.
What matters more: Does it make sense? Is there any advantage over a new install? What are the drawbacks?
I learned (since 2014) to always keep the old system and do a new install. Software missing on the new system is easily identified and installed by comparison with the old system.
For your case: yes. For everybody else, much more likely it works for them also. Must be encouraging for the OP.