LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Current upgrade borked at initrd (https://www.linuxquestions.org/questions/slackware-14/current-upgrade-borked-at-initrd-4175736484/)

lupe 04-27-2024 01:05 PM

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?

rizitis 04-27-2024 01:26 PM

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 !!

Windu 04-27-2024 02:06 PM

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.

rizitis 04-27-2024 02:10 PM

Code:

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).

cryptsetup error is an issue with the OpenSSL libraries, need reinstall.

Petri Kaukasoina 04-27-2024 02:17 PM

Quote:

Originally Posted by lupe (Post 6498573)
I've already deleted the contents of /var/log/packages.

It was the Slackware package database. Now pkgtools and slackpkg think you don't have any packages installed.

lupe 04-27-2024 04:31 PM

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?

lupe 04-27-2024 04:33 PM

Quote:

Originally Posted by Petri Kaukasoina (Post 6498587)
It was the Slackware package database. Now pkgtools and slackpkg think you don't have any packages installed.

Will it cause any problems for other system upgrades?


All times are GMT -5. The time now is 12:51 PM.