Current upgrade borked at initrd
Hi,
I made a mistake and restarted the window manager when slackpkg upgrade-all was running. My system has an (almost) full disk encryption setup and a volume group inside of it. I already chrooted to the disk from other OS, but couldn't still solve the issue. At the boot, initrd complains LUKS device /dev/nvme0n1p2 unavailable for unlocking! then consequent mount error: mounting /dev/cryptvg/root on /mnt failed: no such file or directory. At the the prompt, when running cryptsetup: /lib64/libcrypto.so.3: version OPENSSL_3.2.0 not found (required by /usr/lib64/libcryptsetup.so.12). Probably, it's still necessary to upgrade some packages, but slackpkg upgrade-all doesn't seem to find any to upgrade. I've already deleted the contents of /var/log/packages. What should I do? |
Since you can chroot internet connected , try these:
1. slackpkg reinstall slackpkg 2. slackpkg update 3. slackpkg reinstall openssl libcryptsetup 4. slackpkg reinstall kernel 5. slackpkg reinstall mkinitrd 6. mkinitrd -k $(uname -r) -r /dev/cryptvg/root -L 7. update bootloader 8. exit-reboot good luck !! |
Sounds to me like your upgrade was successful, but then you aborted the process by killing your X session. Probably the only thing you need to do is generate a working initrd.
Use that other OS to chroot into your installation and then run "geninitrd" as root. That should give you a working initrd. And for future reference: NEVER run an OS upgrade while you are inside an X or Wayland session! Always switch to runlevel 3 (or 1) before starting your upgrade. |
Code:
At the the prompt, when running cryptsetup: |
Quote:
|
Thank you all!
I took the suggestions, generated the new initrd and the system can boot again. /var/run/needs_restarting keeps saying that some installed or upgraded packages may need reboot: openssl-solibs-3.3.0-x86_64-1 openssl-3.3.0-x86_64-1 This feature is something that I didn't know about in Slackware, is it a new thing? How can it be cleared? |
Quote:
|
All times are GMT -5. The time now is 03:57 PM. |