Initramfs with decrypting a luks root partition questions
I created a fresh gentoo install. I am creating the initramfs because i made my root partition a encrypted luks partition. I did the usual and placed busybox on the initramfs so far. I have two questions:
1) doesn't there need to be a /dev/mapper in the initramfs so when the root partition is unlocked it has a /dev/mapper/file name?
2) when the exec_switch is preformed how is the /dev/mapper/file name going to transfer over?
3) how do i get the initramfs to take the key from a usb key device given from the grub command line?
Still having trouble though getting the initramfs.
1) I built the initramfs into the kernel...using /usr/src/initramfs. I did not choose any compression for it.
2) I created:
3) I copied my luks key into /usr/src/initramfs/key
4) my init script is:
I spent so many hours...if you could help please i'd really appreciate it.
Note: I tried this kernel on a non encrypted partition on the same laptop(just copied the partition) and it booted successfully(with no initramfs).
Pax and Grsecurity are turned off.
This time I built the initramfs outside the kernel and loaded it externally with grub. I got a more verbose error output. I also updated the script to place marks where the init script may be at:
Please note that on that screen shot it saids "about to do switch" on the very top, so I got that far in the script.
It looks like the syntax could be correct with "exec switch_root /mnt/root /sbin/init", but in the screen shot it seems to be complaining about the new root. Can this be a problem with devtmpfs? Or is switch_root util messed up because of the call traces?
found the problem...i missed spelled the word cryptsetup.
Moved to Software, as it isn't a security issue (at least not directly).
|All times are GMT -5. The time now is 07:21 PM.|