mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
move mount options to variable
This commit is contained in:
parent
576912e9ec
commit
22d6cdf8bc
1 changed files with 5 additions and 4 deletions
|
|
@ -262,13 +262,14 @@ done
|
|||
# Mounting the newly created subvolumes.
|
||||
umount /mnt
|
||||
print "Mounting the newly created subvolumes."
|
||||
mount -o ssd,noatime,compress-force=zstd:3,discard=async,subvol=@ $BTRFS /mnt
|
||||
mountopts="ssd,noatime,compress-force=zstd:3,discard=async"
|
||||
mount -o $mountopts,subvol=@ $BTRFS /mnt
|
||||
mkdir -p /mnt/{home,root,srv,.snapshots,var/{log,cache/pacman/pkg},boot}
|
||||
for subvol in ${subvols[@]:2}; do # ":2" excludes first two subvols (@snapshots and @var_pkgs) from loop
|
||||
mount -o ssd,noatime,compress-force=zstd:3,discard=async,subvol=@$subvol $BTRFS /mnt/$(sed 's,_,/,g' <<< $subvol)
|
||||
mount -o $mountopts,subvol=@$subvol $BTRFS /mnt/$(sed 's,_,/,g' <<< $subvol)
|
||||
done
|
||||
mount -o ssd,noatime,compress-force=zstd:3,discard=async,subvol=@snapshots $BTRFS /mnt/.snapshots
|
||||
mount -o ssd,noatime,compress-force=zstd:3,discard=async,subvol=@var_pkgs $BTRFS /mnt/var/cache/pacman/pkg
|
||||
mount -o $mountopts,subvol=@snapshots $BTRFS /mnt/.snapshots
|
||||
mount -o $mountopts,subvol=@var_pkgs $BTRFS /mnt/var/cache/pacman/pkg
|
||||
chattr +C /mnt/var/log
|
||||
mount $ESP /mnt/boot/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue