use zfs legacy mount, because it boots better.

This appeared during boot time, and needed manual interference using Ctrl-D
zfs_mount_at() failed: mountpoint or dataset is busy
This commit is contained in:
Ingolf Wagner 2023-04-30 09:58:49 +02:00
parent 33b3a33f51
commit 38c401b6e7
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 13 additions and 13 deletions

View file

@ -37,18 +37,18 @@ in
environment.systemPackages =
let
ssh = mapAttrsToList
sshTor = mapAttrsToList
(name:
{ onionId, ... }:
pkgs.writers.writeDashBin "ssh-boot-to-${name}" ''
pkgs.writers.writeDashBin "ssh-boot-to-${name}-via-tor" ''
${pkgs.tor}/bin/torify ${pkgs.openssh}/bin/ssh root@${onionId} -p 2222
'')
computers;
password = mapAttrsToList
passwordTor = mapAttrsToList
(name:
{ onionId, ... }:
pkgs.writers.writeDashBin "unlock-boot-${name}" ''
pkgs.writers.writeDashBin "unlock-boot-${name}-via-tor" ''
${pkgs.tor}/bin/torify ${pkgs.openssh}/bin/ssh root@${onionId} -p 2222 '
echo -n "enter password : "
read password
@ -58,6 +58,6 @@ in
computers;
in
ssh ++ password;
sshTor ++ passwordTor;
}

View file

@ -85,16 +85,16 @@ in
zroot = {
type = "zpool";
#rootFsOptions = {
#mountpoint = "none";
#canmount = "off";
#};
rootFsOptions = {
mountpoint = "none";
canmount = "off";
};
datasets = {
"root" = {
type = "zfs_fs";
mountpoint = "/";
options = {
mountpoint = "/";
mountpoint = "legacy";
compression = "lz4";
};
};
@ -115,7 +115,7 @@ in
type = "zfs_fs";
mountpoint = "/media";
options = {
mountpoint = "/media";
mountpoint = "legacy";
compression = "lz4";
};
};
@ -123,7 +123,7 @@ in
type = "zfs_fs";
mountpoint = "/nextcloud";
options = {
mountpoint = "/nextcloud";
mountpoint = "legacy";
compression = "lz4";
"com.sun:auto-snapshot" = "false";
"com.sun:auto-snapshot:daily" = "true,keep=32";
@ -134,7 +134,7 @@ in
type = "zfs_fs";
mountpoint = "/borg";
options = {
mountpoint = "/borg";
mountpoint = "legacy";
compression = "lz4";
"com.sun:auto-snapshot" = "false";
"com.sun:auto-snapshot:daily" = "true,keep=32";