LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-01-2019, 06:13 PM   #1
sebre
LQ Newbie
 
Registered: Jun 2013
Location: France
Distribution: Slackware
Posts: 28

Rep: Reputation: Disabled
eliloconfig and cryptsetup issues on -current install with full disk encryption


I had two issues installing current on a full disk encrypted (LUKS+LVM) NVME disk.
I usually install -stable on pretty old computers. EFI as well as -current were new things for me. Until now, full disk encryption always worked for me thanks to README_CRYPT.txt.

Here is how I solved the issues.

1 - eliloconfig did not work. The setup installer just skipped it after it telling me not to install lilo.
Solved by manually mounting the EFI partition (/dev/nvme0n1p2 in my case) on /boot/efi (or /mnt/boot/efi if still in setup stage). And running eliloconfig again.

2 - cryptsetup failed on reboot with message "libgcc_s.so.1 must be installed for pthread_cancel to work".
This small patch on /sbin/mkinitrd was enough to make it work, it just adds the missing dynamic lib to initrd.gz :

Code:
@@ -228,6 +228,7 @@
 copy_libs() {
   # First copy the essential glibc files:
   find /lib /lib64 -name "ld-*so*" -o -name "libnss_files*so*" -o -name "libnss_compat*so*" 2> /dev/null | xargs -I'{}' cp -P --parents '{}' $SOURCE_TREE/
+  find /usr/lib64 -name "libgcc_s*sosi cela devrait évoluer*" 2> /dev/null | xargs -I'{}' cp -P --parents '{}' $SOURCE_TREE/
 
   # Then copy all remaining libs our initrd files link against:
   COUNT=1
Someone can probably do better but at least it worked for me. Hope it can help.

Thanks.
 
Old 09-02-2019, 12:08 PM   #2
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,813

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Nice. Thank you, sebre.
 
Old 09-07-2020, 01:47 PM   #3
slackerz
Member
 
Registered: Aug 2020
Posts: 76

Rep: Reputation: 23
Interesting find. I recently set up an encrypted root system on a nvme disk but the system wouldn't boot, hanging after the cryptsetup luksOpen stage. It's curious why didn't mkinitrd know about this library in the first place?

I've done a few of setups these over the years and never had to add the library manually. But this time I was using cryptsetup-2 backported to 14.2 instead of cryptsetup-1.7. I wonder if the issue was related.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Current-64 eliloconfig on nvme broke grub on ssd with ubuntu slkrover Slackware 2 04-06-2019 07:10 PM
How to have luks encryption with keyfile OR passphrase (efi full disk encryption including boot)? byroncollege Linux - Security 2 03-30-2017 07:45 AM
Mint 18 Full disk encryption VS Veracrypt Full Disk encryption: Help a Noob Decide Please ! APeacefulRig Linux - Security 2 11-11-2016 08:10 AM
Slackware64-14.2(current) 03FEB2016 eliloconfig and PXE boot installation kingbeowulf Slackware - Installation 1 02-21-2016 05:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration