Initrd requires LVM option for RAID/LUKS root partition
For the last few Slackware versions I've had to add the LVM option (-L) when creating the initrd for a RAID/LUKS root partition. Previously (a few versions ago) the LVM option was not required.
The disk layer ordering when I install Slackware is the usual; working from the bottom up: partitions, RAID, LUKS, file system. I used my shiny new official Slackware64 14.2 DVD to install Slackware on a new computer and found that the '-L' option is still required, just as it was required in the last few versions of Slackware. If I omit the '-L' option from the mkinitrd command I get the following error messages in 14.2 just AFTER entering the LUKS passphrase. Code:
(retyped from screen, may contain a typo) A few years ago I believe I found this workaround (of adding -L) somewhere on the Internet when I couldn't get the newest Slackware version to boot. But I can't find any references to it now. The mkinitrd command I used (retyped) ... Code:
mkinitrd -c -k 4.4.14 -f ext4 -r cryptroot -m ext4:\ Isn't this a BUG to require LVM functionality when not using LVM to boot? BONUS QUESTION The command generator lists the following modules with underscores: Code:
hid_generic Code:
hid-generic |
Hello,
I'm not sure your assumptions are correct. I suspect there is something else in your mkinitrd command line which is calling /sbin/dmsetup. For the sake of completeness, can you show us your whole command? Also, is your goal to use encryption without LVM? And for clarity: Quote:
|
Quote:
The complete mkinitrd command was included in my post. That's all there is. Am I missing something in the command? When the command generator is used it includes the following additional modules ... Code:
i2c-hid:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp: I also ran the mkinitrd command exactly as specified by the command generator with the same results...only works when I add the "-L" option. I've ran about 10 trials with different settings of the mkinitrd command. (and re-ran lilo each time) Remember I've had this problem for a few releases on a dozen different computers. Of course I could be making the same mistake for several years. :) Quote:
|
Quote:
|
Yeah, the device mapper (dmsetup) is also used for LUKS encryption. And that one only gets added with the "-L" parameter, not by just providing a "-C" parameter.
So either the mkinitrd documentation & man page should be amended with the instruction to add "-L" if you want to use LUKS encryption, or else the mkinit script will have to be modified so that dmsetup is copied into the initrd image whenever LUKS support is requested. I'll have to discuss that with Pat. And yes, with regard to the kernel modules the underscores and hyphens are interchangable. |
@Alien Bob - Thanks for the explanation.
So the "-L" option stands for LUKS and LVM. :) Thanks for looking for a solution. I'll mark this thread as solved. |
All times are GMT -5. The time now is 04:48 PM. |