mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
4d70287e53
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
18 lines
785 B
Text
18 lines
785 B
Text
You will need to adjust how you generate your initrd to include
|
|
early-ssh and to start it at the correct time.
|
|
|
|
Example for LUKS + LVM as described in README_CRYPT.TXT:
|
|
|
|
mkinitrd -c -k "$kernel" -f ext4 -r /dev/disk/by-uuid/<some uuid> \
|
|
-m ext4:<more modules> -u -L -o /boot/initrd-"$kernel".gz \
|
|
-C /dev/disk/by-uuid/<some other uuid>
|
|
-s /tmp/initrd-tree-"$kernel"
|
|
|
|
# clear the luksdev so init does not try to unlock it itself
|
|
true > /tmp/initrd-tree-"$kernel"/luksdev
|
|
DESTDIR=/tmp/initrd-tree-"$kernel" /usr/share/mkinitrd/hooks/early_ssh
|
|
sed -i '/^[[:space:]]*if \[ -x \/sbin\/cryptsetup \]/i \
|
|
\/early_ssh' /tmp/initrd-tree-"$kernel"/init
|
|
|
|
mkinitrd -k "$kernel" -f ext4 -r /dev/disk/by-uuid/<some uuid> -u -L \
|
|
-o /boot/initrd-"$kernel".gz -s /tmp/initrd-tree-"$kernel"
|