fix volume mounting

This commit is contained in:
Christoph Cullmann 2024-10-29 18:11:52 +01:00
parent 922366910b
commit 6fe6156fc6
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

@ -94,9 +94,9 @@ mkdir -p /mnt/{data,nix,boot,root,etc/nixos,tmp}
mount $DISK-part1 /mnt/boot
# mount volumes
mount -o subvol=data,noatime /mnt/data
mount -o subvol=nix,noatime /mnt/nix
mount -o subvol=tmp,noatime /mnt/tmp
mount -o subvol=data,noatime /dev/mapper/crypt-system /mnt/data
mount -o subvol=nix,noatime /dev/mapper/crypt-system /mnt/nix
mount -o subvol=tmp,noatime /dev/mapper/crypt-system /mnt/tmp
# bind mount persistent stuff to data
mkdir -p /mnt/data/{root,nixos/$HOST}

View file

@ -95,9 +95,9 @@ mkdir -p /mnt/{data,nix,boot,root,etc/nixos,tmp}
mount $DISK-part1 /mnt/boot
# mount volumes
mount -o subvol=data,noatime /mnt/data
mount -o subvol=nix,noatime /mnt/nix
mount -o subvol=tmp,noatime /mnt/tmp
mount -o subvol=data,noatime /dev/mapper/crypt-system /mnt/data
mount -o subvol=nix,noatime /dev/mapper/crypt-system /mnt/nix
mount -o subvol=tmp,noatime /dev/mapper/crypt-system /mnt/tmp
# bind mount persistent stuff to data
mkdir -p /mnt/data/{root,nixos/$HOST}