mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-22 09:31:34 -05:00
Update install.sh
This commit is contained in:
parent
0dc28fb319
commit
41ce377e7b
21
install.sh
21
install.sh
@ -88,21 +88,24 @@ mount $BTRFS /mnt
|
|||||||
|
|
||||||
# Creating BTRFS subvolumes.
|
# Creating BTRFS subvolumes.
|
||||||
echo "Creating BTRFS subvolumes."
|
echo "Creating BTRFS subvolumes."
|
||||||
btrfs su cr /mnt/@ &>/dev/null
|
btrfs subvolume create /mnt/@ &>/dev/null
|
||||||
btrfs su cr /mnt/@boot &>/dev/null
|
btrfs subvolume create /mnt/@/.snapshots &>/dev/null
|
||||||
btrfs su cr /mnt/@home &>/dev/null
|
mkdir /mnt/@/.snapshots/0 &>/dev/null
|
||||||
btrfs su cr /mnt/@snapshots &>/dev/null
|
btrfs subvolume create /mnt/@/.snapshots/0/snapshot &>/dev/null
|
||||||
btrfs su cr /mnt/@var_log &>/dev/null
|
btrfs subvolume create /mnt/@/boot &>/dev/null
|
||||||
|
btrfs subvolume create /mnt/@/home &>/dev/null
|
||||||
|
btrfs subvolume create /mnt/@/root &>/dev/null
|
||||||
|
btrfs subvolume create /mnt/@/var_log &>/dev/null
|
||||||
|
|
||||||
# Mounting the newly created subvolumes.
|
# Mounting the newly created subvolumes.
|
||||||
umount /mnt
|
umount /mnt
|
||||||
echo "Mounting the newly created subvolumes."
|
echo "Mounting the newly created subvolumes."
|
||||||
mount -o ssd,noatime,space_cache,compress=zstd,subvol=@ $BTRFS /mnt
|
mount -o ssd,noatime,space_cache,compress=zstd,subvol=@ $BTRFS /mnt
|
||||||
mkdir -p /mnt/{home,.snapshots,/var/log,boot}
|
mkdir -p /mnt/{home,.snapshots,/var/log,boot}
|
||||||
mount -o ssd,noatime,space_cache,compress=zstd:15,subvol=@boot $BTRFS /mnt/boot
|
mount -o ssd,noatime,space_cache,compress=zstd:15,subvol=@/boot $BTRFS /mnt/boot
|
||||||
mount -o ssd,noatime,space_cache.compress=zstd:15,subvol=@home $BTRFS /mnt/home
|
mount -o ssd,noatime,space_cache.compress=zstd:15,subvol=@/home $BTRFS /mnt/home
|
||||||
mount -o ssd,noatime,space_cache,compress=zstd:15,subvol=@snapshots $BTRFS /mnt/.snapshots
|
mount -o ssd,noatime,space_cache,compress=zstd:15,subvol=@/.snapshots $BTRFS /mnt/.snapshots
|
||||||
mount -o ssd,noatime,space_cache,nodatacow,subvol=@var_log $BTRFS /mnt/var/log
|
mount -o ssd,noatime,space_cache,nodatacow,subvol=@/var_log $BTRFS /mnt/var/log
|
||||||
chattr +C /mnt/var/log
|
chattr +C /mnt/var/log
|
||||||
mkdir /mnt/boot/efi
|
mkdir /mnt/boot/efi
|
||||||
mount $ESP /mnt/boot/efi
|
mount $ESP /mnt/boot/efi
|
||||||
|
Loading…
Reference in New Issue
Block a user