55 lines
No EOL
1.5 KiB
Bash
55 lines
No EOL
1.5 KiB
Bash
# Vor Reboot
|
|
# Keyboard einstellen
|
|
localectl set-keymap de-latin1-nodeadkeys
|
|
|
|
#ip -c a
|
|
# rfkill unblock wifi
|
|
# iwctl
|
|
#pacman -Sy
|
|
|
|
# Zeit einstellen
|
|
timedatectl set-timezone Europe/Berlin
|
|
timedatectl set-ntp true
|
|
|
|
# Partitionieren
|
|
# /dev/vda1 300M EFI
|
|
# /dev/vda2 Rest /
|
|
parted --script /dev/vda \
|
|
mklabel gpt \
|
|
mkpart "efi" fat32 1MiB 501MiB \
|
|
set 1 esp on \
|
|
mkpart "root" btrfs 501MiB 100%
|
|
|
|
# Filesystem
|
|
mkfs.vfat /dev/vda1 -n EFI
|
|
mkfs.btrfs /dev/vda2 -L arch
|
|
|
|
# BTRFS Subvolumes
|
|
mount /dev/vda2 /mnt
|
|
cd /mnt
|
|
btrfs subvolume create @
|
|
btrfs subvolume create @home
|
|
btrfs subvolume create @var
|
|
btrfs subvolume create @log
|
|
btrfs subvolume create @cache
|
|
cd ~
|
|
umount -R /mnt
|
|
|
|
# Mount Volumes
|
|
mount -o noatime,compress=zstd,space_cache=v2,discard=async,subvol=@ /dev/vda2 /mnt
|
|
mkdir -p /mnt/{home,boot,var}
|
|
mount -o noatime,compress=zstd,space_cache=v2,discard=async,subvol=@home /dev/vda2 /mnt/home
|
|
mount -o noatime,compress=zstd,space_cache=v2,discard=async,subvol=@var /dev/vda2 /mnt/var
|
|
mkdir -p /mnt/var/{cache,log}
|
|
mount -o noatime,compress=zstd,space_cache=v2,discard=async,subvol=@log /dev/vda2 /mnt/var/log
|
|
mount -o noatime,compress=zstd,space_cache=v2,discard=async,subvol=@cache /dev/vda2 /mnt/var/cache
|
|
mount /dev/vda1 /mnt/boot
|
|
|
|
pacstrap /mnt base linux linux-lts linux-firmware amd-ucode tamsyn-font vim git btrfs-progs
|
|
|
|
# discoverable-partitions-spec
|
|
genfstab -U /mnt >> /mnt/etc/fstab
|
|
|
|
# Namensauflösung mit systemd-resolved
|
|
ln -sf /run/systemd/resolve/stub-resolv.conf /mnt/etc/resolv.conf
|
|
arch-chroot /mnt |