mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-12-22 15:01:34 -05:00
Update install.sh
This commit is contained in:
parent
1a04fee415
commit
79dd2a06fc
@ -92,8 +92,7 @@ btrfs subvolume create /mnt/@ &>/dev/null
|
||||
btrfs subvolume create /mnt/@/.snapshots &>/dev/null
|
||||
mkdir -p /mnt/@/.snapshots/1 &>/dev/null
|
||||
btrfs subvolume create /mnt/@/.snapshots/1/snapshot &>/dev/null
|
||||
mkdir -p /mnt/@/boot
|
||||
btrfs subvolume create /mnt/@/boot/grub/ &>/dev/null
|
||||
btrfs subvolume create /mnt/@/grub/ &>/dev/null
|
||||
btrfs subvolume create /mnt/@/home &>/dev/null
|
||||
btrfs subvolume create /mnt/@/root &>/dev/null
|
||||
btrfs subvolume create /mnt/@/srv &>/dev/null
|
||||
@ -106,7 +105,7 @@ btrfs subvolume create /mnt/@/var_spool &>/dev/null
|
||||
btrfs subvolume create /mnt/@/var_lib_gdm &>/dev/null
|
||||
btrfs subvolume create /mnt/@/var_lib_AccountsService &>/dev/null
|
||||
btrfs subvolume create /mnt/@/var_lib_libvirt_images &>/dev/null
|
||||
chattr +C /mnt/@/boot/grub
|
||||
chattr +C /mnt/@/grub
|
||||
chattr +C /mnt/@/srv
|
||||
chattr +C /mnt/@/tmp
|
||||
chattr +C /mnt/@/var_log
|
||||
@ -133,7 +132,7 @@ umount /mnt
|
||||
echo "Mounting the newly created subvolumes."
|
||||
mount -o ssd,noatime,space_cache,compress=zstd:15 $BTRFS /mnt
|
||||
mkdir -p /mnt/{/boot/grub,root,home,.snapshots,srv,tmp,/var/log,/var/crash,/var/cache,/var/tmp,/var/spool,/var/lib/gdm,/var/lib/AccountsService,/var/lib/libvirt/images}
|
||||
mount -o ssd,noatime,space_cache,compress=zstd:15,nodatacow,subvol=@/boot/grub $BTRFS /mnt/boot/grub
|
||||
mount -o ssd,noatime,space_cache,compress=zstd:15,,subvol=@/grub $BTRFS /mnt/boot/grub
|
||||
mount -o ssd,noatime,space_cache,compress=zstd:15,subvol=@/root $BTRFS /mnt/root
|
||||
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
|
||||
@ -159,7 +158,7 @@ pacstrap /mnt base base-devel ${kernel} ${microcode} linux-firmware grub grub-bt
|
||||
# Generating /etc/fstab.
|
||||
echo "Generating a new fstab."
|
||||
genfstab -U /mnt >> /mnt/etc/fstab
|
||||
sed -i 's#subvolid=258,subvol=/@/.snapshots/1/snapshot,subvol=@/.snapshots/1/snapshot,##g' /mnt/etc/fstab
|
||||
sed -i 's#subvolid=258,subvol=/@/.snapshots/1/snapshot,subvol=@/.snapshots/1/snapshot##g' /mnt/etc/fstab
|
||||
|
||||
# Setting hostname.
|
||||
read -r -p "Please enter the hostname: " hostname
|
||||
|
Loading…
Reference in New Issue
Block a user