#Unable to decrypt root in my compiled kernel

1 messages · Page 1 of 1 (latest)

frigid onyx
#

Hey all, i have got decryption going in the bin kernel but apparently i am missing some config to get that going in the kernel i compiled, i made sure to include dmcrypt in my kernel but to no avail. I am using a UKI with dracut

kernel_cmdline="crypt_root=UUID=40d70489-3b71-4d36-8b72-f16098d964be rd.luks.partuuid=40d70489-3b71-4d36-8b72-f16098d964be rd.luks.uuid=0d70489-3b71-4d36-8b72-f16098d964be root=UUID=848d9de8-501e-43ad-bdbf-0fe0a556d2f2 rootflags=subvol=@

crisp sable
#

im seeing a lot of numbers and letters and no ugrd

#

one day i will learn to read but there is a simple solution to your (likely) misconfig, because dracut needs perfect config to work

brave plinth
#

@frigid onyx what does your dracut config look like? I’ve heard you should keep that default and put the parameters in the grub config instead

upbeat canyon
frigid onyx
frigid onyx
frigid onyx
frigid onyx
#

can the initrd gen y ugrd and uki gen be dracut?

#

i tried that and it doesnt seem like to be creating the uki

frigid onyx
brave plinth
#

You can generate the initramfs with ugrd, then use ukify pack it together with the kernel in a uki

#

do you use installkernel?

#

Something like /etc/kernel/install.conf:
layout=uki
initrd_generator=ugrd
uki_generator=ukify

frigid onyx
#

yep figured it out, had to get ukify running.