ragbusswarty wrote:I was launching this script without any options I didn't know that it have options. Now I run it with -k 4.4.19 and it generates me a command:
Code: Select all
mkinitrd -c -k 4.4.19 -f btrfs -r salix-1 -m usb-storage:ehci-hcd:ehci-pci:xhci-pci:ohci-pci:xhci-hcd:uhci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:btrfs -C /dev/sda -u -o /boot/initrd.gz
I modified some options in this generated command:
To decrypt other disks that stack up into my btrfs:
Code: Select all
-C /dev/sda /dev/sdb /dev/sdc /dev/sdd
And I've added -B option to scan for my multidevice btrfs.
From mkinitrd man page:
Code: Select all
-r root partition
Specify the device to be used as the root partition. If this isn't given, the kernel default will be used (which is usually fine). This option must be used together with the -f option in order to be beneficial.
The generated command has
-r salix-1 as parameter.
Is this
salix-1 the name, perhaps the partition label, of your root partition?
The man page says:
Code: Select all
-C device list
A colon (:) delimited list of luks encrypted block devices [...]
But you used
-C /dev/sda /dev/sdb /dev/sdc /dev/sdd . Thats not colon delimited, so wrong. The rest does not seem to be wrong.
ragbusswarty wrote:But I suppose that it's not enough, I think that I need to somewhat inform luks in initrd of detached headers.
Is Btrfs offered as one of the possible file systems for the Salix installation? Or does it have to be set up afterwards? I ask this because I have no memory of this part of the installation process.
Do you have to start immediately with the LUKS extension? Or can you even try btrfs without LUKS set up? If this works, you know that there is a problem with understanding LUKS.
I have only once setup btrfs. That was in the time when Slackware 13.37 was up to date. This is why I have the link to the page "Slackware on external (USB) harddisk with btrfs root".
Perhaps it is useful to look for further and more recent instructions. I saw some on the web, but not for Slackware. If no solution is possible and nothing can be found on the web at all, then a help request at
http://www.linuxquestions.org/questions/slackware-14/ could be useful. But do not write that you are trying to use Salix.
You also do not write what happens when you used mkinitrd. Is an initrd image created?
If so, and you have Lilo in use and
/etc/lilo.conf is adapted and you boot thereby, what is the consequence?
If necessary, please show your /etc/lilo.conf content.