Added commands for BTRFS-Install

This commit is contained in:
eichehome 2022-01-16 22:13:31 +01:00
parent 769767c879
commit 5a7f746d1f

41
pre.sh
View file

@ -1,3 +1,4 @@
#--UEFI-ext4--
# setfont ter-132n
localectl set-keymap de-latin1
@ -40,3 +41,43 @@ pacstrap /mnt base linux linux-firmware vim amd-ucode git tamsyn-font
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
#--UEFI-ext4--
#--UEFI-btrfs--
localectl set-keymap de-latin1
ip -c a
# rfkill unblock wifi
# iwctl
pacman -Sy #check if we can reach the repos
pacman -S tamsyn-font
setfont Tamsyn10x20r
timedatectl set-ntp true
fdisk /dev/vda
# UEFI GPT
# /dev/vda1 300M EFI
# /dev/vda2 Rest /
mkfs.vfat /dev/vda1
mkfs.btrfs /dev/vda2
mount /dev/vda2 /mnt
cd /mnt
btrfs subvolume create @
btrfs subvolume create @home
btrfs subvolume create @log
btrfs subvolume create @cache
cd ~
umount
mount -o noatime,compress=zstd,space_cache,discard=async,subvol=@ /dev/vda2 /mnt
mkdir -p /mnt/{home,var/log,var/cache,boot}
mount -o noatime,compress=zstd,space_cache,discard=async,subvol=@home /dev/vda2 /mnt/home
mount -o noatime,compress=zstd,space_cache,discard=async,subvol=@log /dev/vda2 /mnt/var/log
mount -o noatime,compress=zstd,space_cache,discard=async,subvol=@cache /dev/vda2 /mnt/cache
mount /dev/vda1 /mnt/boot
pacstrap /mnt base linux linux-lts linux-firmware amd-ucode tamsyn-font vim git
genfstab -U /mnt >> /mnt/etc/fstab
#--UEFI-btrfs--