Automatische Partitionieren durch parted

This commit is contained in:
eichehome 2022-12-13 20:15:52 +01:00
parent 5632dea38c
commit 4f673ef6bb

View file

@ -1,5 +1,6 @@
# Vor Reboot
#localectl set-keymap de-latin1
# Keyboard einstellen
localectl set-keymap de-latin1
#ip -c a
# rfkill unblock wifi
@ -9,9 +10,16 @@
#pacman -S tamsyn-font
#setfont Tamsyn10x20r
# Zeit einstellen
timedatectl set-timezone Europe/Berlin
timedatectl set-ntp true
echo -n "o\ny\nyn\n\n\n+300M\nef00\nn\n\n\n\n\nw\ny\n" | gdisk /dev/vda #o\n y\n n\n \n \n +300m\n ef00\n n\n \n \n \n \n w\n y\n
# Partitionieren
parted --script /dev/vda \
mklabel gpt \
mkpart fat32 1MiB 501MiB \
mkpart btrfs 501MiB 100%
#echo -n "o\ny\nyn\n\n\n+300M\nef00\nn\n\n\n\n\nw\ny\n" | gdisk /dev/vda #o\n y\n n\n \n \n +300m\n ef00\n n\n \n \n \n \n w\n y\n
#gdisk /dev/vda
# /dev/vda1 300M EFI
# /dev/vda2 Rest /
@ -45,3 +53,11 @@ genfstab -U /mnt >> /mnt/etc/fstab
ln -sf /run/systemd/resolve/stub-resolv.conf /mnt/etc/resolv.conf
arch-chroot /mnt
#############################
# neue Version
localectl set-keymap de-latin1
timedatectl set-timezone Europe/Berlin
timedatectl set-ntp true