Advertisement
bkmo

Arch-chroot

Aug 4th, 2023 (edited)
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | Source Code | 0 0
  1. #!/bin/bash
  2. cryptsetup luksOpen /dev/nvme0n1p2 cryptroot
  3. cryptsetup luksOpen /dev/nvme0n1p3 storage
  4.  
  5. mount -o noatime,compress=zstd,subvol=@ /dev/mapper/cryptroot /mnt
  6. mount -o noatime,compress=zstd,subvol=@home /dev/mapper/cryptroot /mnt/home
  7. mount /dev/nvme0n1p1 /mnt/boot
  8.  
  9. mkdir /mnt/btrfs
  10. mkdir /mnt/btrfs1
  11.  
  12. mount -o noatime,compress=zstd /dev/mapper/storage /mnt/btrfs
  13. mount -o noatime,compress=zstd /dev/mapper/cryptroot /mnt/btrfs1
  14.  
  15. echo "Sleeping for five seconds, ctrl-c to exit before arch-chroot"
  16. sleep 5
  17. arch-chroot /mnt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement