mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:09:24 +08:00
devices.nas: rescue
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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 ]
|
||||
|
||||
Reference in New Issue
Block a user