Last active
November 18, 2023 00:05
-
-
Save gauravjuvekar/a1cc334b885335631312a8cb1c207e01 to your computer and use it in GitHub Desktop.
mount-nix.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modprobe dm_raid | |
modprobe dm_integrity | |
vgchange --config 'devices { scan_lvs = 1 }' -ay | |
cryptsetup open /dev/mapper/vgBoot-lvBoot cryptBoot | |
cryptsetup open /dev/mapper/vgRaid-lvRaid cryptPv | |
vgchange --config 'devices { scan_lvs = 1 }' -ay | |
mount /dev/mapper/vgOs-nixRoot /mnt -o subvol=@root | |
mount /dev/mapper/vgOs-nixRoot /mnt/nix -o subvol=@nix | |
mount /dev/mapper/vgOs-lvHome /mnt/home -o subvol=@home | |
mount /dev/mapper/cryptBoot /mnt/boot | |
mount /dev/nvme0n1p1 /mnt/boot/esp0 | |
mount /dev/nvme1n1p1 /mnt/boot/esp1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment