mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add keyfile
This commit is contained in:
parent
ef71a727a4
commit
4930f240df
1 changed files with 14 additions and 3 deletions
|
|
@ -19,10 +19,21 @@
|
|||
};
|
||||
|
||||
boot.initrd.luks.devices = {
|
||||
"luks-86769693-b61c-4712-852d-e0fba612d260".device =
|
||||
"luks-root".device =
|
||||
"/dev/disk/by-uuid/86769693-b61c-4712-852d-e0fba612d260";
|
||||
"luks-0418acfc-792c-43f4-a887-cc8bb51fa7c3".device =
|
||||
"/dev/disk/by-uuid/0418acfc-792c-43f4-a887-cc8bb51fa7c3";
|
||||
"luks-swap" = {
|
||||
device = "/dev/disk/by-uuid/0418acfc-792c-43f4-a887-cc8bb51fa7c3";
|
||||
fallbackToPassword = true;
|
||||
preLVM = false;
|
||||
preOpenCommands = ''
|
||||
mkdir -p /tmp/root
|
||||
mount /dev/disk/by-uuid/03e49688-cc62-49c9-a906-e2ea87a38891 /tmp/root
|
||||
'';
|
||||
keyFile = "/tmp/root/swap.key";
|
||||
postOpenCommands = ''
|
||||
umount /tmp/persistent
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems."/mnt/bulk" =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue