devices.nas: rescue

This commit is contained in:
2025-08-24 14:47:59 +08:00
parent 5c0b5ca78e
commit d9d78424fc
2 changed files with 2 additions and 1 deletions

View File

@@ -64,6 +64,7 @@ inputs:
"compress-force=zstd"
# large btrfs volume need more time to mount (default 90s might not be enough)
"x-systemd.mount-timeout=300s"
"degraded"
];
neededForBoot = true;
};

View File

@@ -41,7 +41,7 @@ inputs:
${waitDevice}
# mount device
mount ${device} /mnt -m -o noatime,compress-force=zstd
mount ${device} /mnt -m -o noatime,compress-force=zstd,degraded
# move old rootfs, create new one
if [ -f /mnt/nix/rootfs/current/.timestamp ]