Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Encrypted luks2 partition won't boot

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
Danielsan
Posts: 659
Joined: 2010-10-10 22:36
Has thanked: 5 times

[SOLVED] Encrypted luks2 partition won't boot

#1 Post by Danielsan »

Hi guys,

I have a very annoying issue, I use a Debian VM to handle some specific task. It is Sid on Virtualbox with macOS as host. Today after a reboot it stopped to boot because after inserting the password I received this warning:

Code: Select all

libgcc_s.so.1 must be installed for pthread_cancel to work
aborted
And It requested again the password.

I chrooted and reinstalled a bunch of packages that have that library, I also installed GNULIB that should handle pthread tasks, and did a fsck; but none of those worked and I don't understand how to fix it.

Any ideas?

Everything is on / with a very small swap partition.
Last edited by Danielsan on 2020-02-04 16:35, edited 1 time in total.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Encrypted luks2 partition won't boot

#2 Post by p.H »

Maybe sid is broken again ?

libgcc_s.so.1 seems to be a "soft" dependency of libpthread (not shown by ldd, loaded only when needed). Did you check if it is included in the initramfs ?

User avatar
Danielsan
Posts: 659
Joined: 2010-10-10 22:36
Has thanked: 5 times

Re: [SOLVED] Encrypted luks2 partition won't boot

#3 Post by Danielsan »

Hi,

thanks for your reply.

Eventually came a bug report:

https://bugs.debian.org/cgi-bin/bugrepo ... bug=950551

And SID got broken again because a missing hook in the initram image.

I am bit of disoriented about this behavior, however I was able to run again my box but I am not sure if I will able to re-run it again...

Other reports:

https://salsa.debian.org/kernel-team/in ... 5ef9ccc015

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: [SOLVED] Encrypted luks2 partition won't boot

#4 Post by p.H »

Danielsan wrote:Eventually came a bug report:
A change in a package broke another package. That's what sid/unstable is for.
Danielsan wrote:I am bit of disoriented about this behavior, however I was able to run again my box but I am not sure if I will able to re-run it again...
What do you mean ? According to the links you posted, the issue has been fixed.

User avatar
Danielsan
Posts: 659
Joined: 2010-10-10 22:36
Has thanked: 5 times

Re: [SOLVED] Encrypted luks2 partition won't boot

#5 Post by Danielsan »

p.H wrote:A change in a package broke another package. That's what sid/unstable is for.
I am agreed however it doesn't seem very smart throwing a change and see what happens without caring anything else.
p.H wrote:What do you mean ? According to the links you posted, the issue has been fixed.
Everything works properly however none all the suggestions worked for me, hence I was able to reload Debian but without understanding which fixing actually worked.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: [SOLVED] Encrypted luks2 partition won't boot

#6 Post by p.H »

The fix was simply to update the broken package.

User avatar
Danielsan
Posts: 659
Joined: 2010-10-10 22:36
Has thanked: 5 times

Re: [SOLVED] Encrypted luks2 partition won't boot

#7 Post by Danielsan »

From my understanding the fix was to go on an older kernel creating a symlink of that library where missing and regenareting the initramfs for the broken kernel...

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: [SOLVED] Encrypted luks2 partition won't boot

#8 Post by p.H »

The kernel was not broken. The initramfs was. Booting with an older kernel (using an older initramfs) was just a temporary workaround in order to boot the system. The real fix was to update the package which needed to be updated.

Post Reply