mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-28 10:55:18 +03:00
8bd5873ffc
With this change, we can now use LUKS and LVM over NBD. There are some decisions to be made regarding where we should get the fstype and fsoptions from (DHCP root vs rootfstype= etc), but the basic functionality is there.
7 lines
109 B
Bash
Executable File
7 lines
109 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ -b /dev/mapper/$2 ] && exit 0
|
|
echo -n test >/keyfile
|
|
/sbin/cryptsetup luksOpen $1 $2 </keyfile
|
|
|