[artix-general] [s6] system not decrypting/mounting (lvm on luks) a non root volume at boot

Dudemanguy dudemanguy at artixlinux.org
Mon Apr 13 15:29:18 CEST 2020


> I just late found out I needed to install cryptsetup-s6.  However I just also found several issues with "/etc/s6/sv/cryptsetup/shell_up":
> 
> <1>  "printhl" is not a bash command, it needs to be replaced with echo, or something supported by bash.
> <2>  "--allow-discard" is not a cryptsetup option, it needs to be replaced with "--allow-discards" (notice the plural) > <3>  After the prior changes, for some reason when calling the 
oneshot manually, it does work:

Thanks for doing this. cryptsetup-s6 was not really tested honestly. I 
had an encrypted partition before, but I used a hook in mkinitcpio to 
unlock it on boot. The script is mostly just copied and pasted it from 
runit but clearly there were some things that were overlooked.


> However on boot, I don't get asked to provide the password ever, and instead I see the output:

I think I know the reason for this. The execline script ends on a call 
to that bash script. However from the perspective of s6-rc, the script 
is finished executing so nothing is blocked. I think the simple fix here 
is to simply add a dummy command after it so s6-rc waits on the script 
to actually finish. I've added a new version of the script to the 
gremlins repo. If you could let me know if it works, that would be great.


More information about the artix-general mailing list