baremetal: force import zfs pool
This commit is contained in:
parent
e43dee88ca
commit
0a7bdbb3ee
|
@ -14,23 +14,29 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.network = {
|
boot = {
|
||||||
enable = true;
|
initrd.network = {
|
||||||
ssh = {
|
enable = true;
|
||||||
# TODO: enable now per machine
|
ssh = {
|
||||||
# enable = true;
|
# TODO: enable now per machine
|
||||||
authorizedKeys = config.users.users.root.openssh.authorizedKeys.keys;
|
# enable = true;
|
||||||
hostKeys = [
|
authorizedKeys = config.users.users.root.openssh.authorizedKeys.keys;
|
||||||
initrdEd2219Key
|
hostKeys = [
|
||||||
initrdRsaKey
|
initrdEd2219Key
|
||||||
];
|
initrdRsaKey
|
||||||
port = 4748;
|
];
|
||||||
|
port = 4748;
|
||||||
|
};
|
||||||
|
postCommands = ''
|
||||||
|
cat <<EOF > /root/.profile
|
||||||
|
cryptsetup-askpass
|
||||||
|
EOF
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
postCommands = ''
|
kernelParams = [
|
||||||
cat <<EOF > /root/.profile
|
# "boot.shell_on_fail"
|
||||||
cryptsetup-askpass
|
"zfs_force=1"
|
||||||
EOF
|
];
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
Loading…
Reference in New Issue