zenix: new usbkey
This commit is contained in:
parent
937b71bac8
commit
e7acefb8f2
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.luks.devices."usbkey" = {
|
boot.initrd.luks.devices."usbkey" = {
|
||||||
device = "/dev/disk/by-id/usb-Generic_Flash_Disk_BCC97785-0:0";
|
device = "/dev/disk/by-label/usbkey1";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.luks.devices."cryptroot" = {
|
boot.initrd.luks.devices."cryptroot" = {
|
||||||
|
|
@ -40,7 +40,7 @@ in {
|
||||||
keyFileSize = 4096;
|
keyFileSize = 4096;
|
||||||
preOpenCommands = ''
|
preOpenCommands = ''
|
||||||
mkdir -m 0755 -p /key
|
mkdir -m 0755 -p /key
|
||||||
mount -n -t vfat -o ro /dev/mapper/usbkey /key
|
mount -n -o ro /dev/mapper/usbkey /key
|
||||||
'';
|
'';
|
||||||
keyFile = "/key/keyfile";
|
keyFile = "/key/keyfile";
|
||||||
preLVM = false;
|
preLVM = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue