aboutsummaryrefslogtreecommitdiff
path: root/hosts/enode/impermenance.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/enode/impermenance.nix')
-rw-r--r--hosts/enode/impermenance.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/hosts/enode/impermenance.nix b/hosts/enode/impermenance.nix
index 20df233..437654e 100644
--- a/hosts/enode/impermenance.nix
+++ b/hosts/enode/impermenance.nix
@@ -40,17 +40,17 @@ in
# Wait for the disk to appear
requires = [
- "${utils.escapeSystemPath "/dev/disk/by-partlabel/root"}.device"
+ "dev-disk-by\\x2dpartlabel-root.device"
];
after = [
- "${utils.escapeSystemPath "/dev/disk/by-partlabel/root"}.device"
+ "dev-disk-by\\x2dpartlabel-root.device"
# Allow hibernation to resume before trying to alter any data
"local-fs-pre.target"
];
script = ''
mkdir /btrfs_tmp
- mount /dev/disk/by-label/root /btrfs_tmp
+ mount /dev/disk/by-partlabel/root /btrfs_tmp
trap 'umount /btrfs_tmp' EXIT
if [ -e /btrfs_tmp/root ]; then
mkdir -p /btrfs_tmp/old_roots