clr-boot-manager icon indicating copy to clipboard operation
clr-boot-manager copied to clipboard

Commit breaks LUKS on Solus

Open Girtablulu opened this issue 5 years ago • 10 comments

We had an issue update clr-boot-manger on Solus which broke installs which used LUKS after the system run clr-boot-manager update.

I looked into it and found the commit which is causing this problem on solus

commit ef77136

after I patched this one out, I could update and use v3.1.0 and have no issues sofar on my LUKS test system. (Gonna keep an eye on it, @DataDrake is aware of it)

Another small thing I found was running clr-boot-manager list-kernels on a UEFI system I get an error


[FATAL] cbm (../src/bootloaders/systemd-class.c:L507): sd_class_get_default_kernel Unable to parse loader config
  com.solus-project.current.4.19.7-103

Which does not happen on a GRUB install

Girtablulu avatar Dec 08 '18 22:12 Girtablulu

Ah you might be hitting things that #129 resolves on listing kernels but that looks different so I'll have to try and bootup a Solus install and try that out. I'm really not sure what is going on with the LUKS breakage right now and I'll need to look into that because this does work for Clear Linux LUKS installs.

bryteise avatar Dec 08 '18 23:12 bryteise

Ah okay, didn't see the PR sorry about that.

DataDrake didn't had time yet to look into it and figure out exactly why this happens, I just confirmed his suspicion that this commit is causing it.

Girtablulu avatar Dec 10 '18 21:12 Girtablulu

The sudo clr-boot-manager list-kernels command still shows the error, any fix ?

astrolemonade avatar Jun 07 '19 17:06 astrolemonade

@cata0309 Not yet sorry X(. Any chance you could paste a copy of the config that is showing the error?

bryteise avatar Jun 07 '19 18:06 bryteise

It is a fresh install, not a personalized config

astrolemonade avatar Jun 08 '19 17:06 astrolemonade

Hrm I seem to having the iso installer crash when running in a VM. Will need to poke at this more X(.

bryteise avatar Jun 10 '19 04:06 bryteise

Hey guys, might my issue be related to this?

circlenaut avatar Aug 01 '19 00:08 circlenaut

Same error here, not using LUKS

Looks scary but everything works fine.

bvdlingen avatar Sep 30 '19 10:09 bvdlingen

Please can you confirm this is still any issue. Can you please check with a more recent version (not sure the version Solus is shipping these days).

dorileo avatar Jan 31 '20 00:01 dorileo

I can confirm this is still an issue. The cause seems to be that the glob in the linked commit has the wrong order:

$ ls -1 /sys/block/dm-2/slaves/*{,/slaves/*}/dev
/sys/block/dm-2/slaves/dm-0/dev
/sys/block/dm-2/slaves/dm-0/slaves/nvme0n1p2/dev

The glob should probably be: /sys/block/dm-2/slaves/*{/slaves/*,}/dev

Edit: I have tested CBM with this patch, and it works on both LVM on LUKS and just plain LUKS.

silkeh avatar Jul 29 '20 17:07 silkeh