Strukturänderung
This commit is contained in:
parent
9e4d8eccb0
commit
9fab9693b0
4 changed files with 43 additions and 0 deletions
1
Libvirt.sh
Normal file
1
Libvirt.sh
Normal file
|
@ -0,0 +1 @@
|
|||
sudo pacman -S libvirt qemu? iptables-nft dnsmasq dmidecode bridge-utils virt-manager virt-install? edk2-ovmf
|
3
Vagrand.sh
Normal file
3
Vagrand.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
sudo pacman -S vagrand
|
||||
# needs Libvirt, qemu, etc.
|
||||
vagrand plugin install vagrand-libvirt
|
0
gnome.sh
Normal file
0
gnome.sh
Normal file
39
prep-BTRFS-UEFI-Encrypted.sh
Normal file
39
prep-BTRFS-UEFI-Encrypted.sh
Normal file
|
@ -0,0 +1,39 @@
|
|||
localectl set-keymap de-latin1-nodeadkeys
|
||||
|
||||
timedatectl set-timezone Europe/Berlin
|
||||
timedatectl set-ntp yes
|
||||
|
||||
parted --script /dev/vda \
|
||||
mklable gpt \
|
||||
mkpart "efi" fat32 1MiB 501MiB \
|
||||
set 1 esp on \
|
||||
mkpart "root" btrfs 501MiB 100%
|
||||
|
||||
mkfs.vfat /dev/vda1 -n EFI
|
||||
cryptsetup --cipher aes-xts-plain64 --hash sha512 --use-random --verify-passphrase luksFormat /dev/vda2
|
||||
|
||||
cryptsetup luksOpen /dev/vda2 cryptroot
|
||||
|
||||
mkfs.btrfs /dev/mapper/cryptroot -L arch
|
||||
|
||||
mount /dev/mapper/cryptroot /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 -o noatime,compress=zstd,space_cache=v2,discard=async,subvol=@ /dev/mapper/cryptroot /mnt
|
||||
mkdir -p /mnt/{home,boot,var}
|
||||
mount -o noatime,compress=zstd,space_cache=v2,discard=async,subvol=@home /dev/mapper/cryptroot /mnt/home
|
||||
mount -o noatime,compress=zstd,space_cache=v2,discard=async,subvol=@var /dev/mapper/cryptroot /mnt/var
|
||||
mkdir -p /mnt/var/{cache,log}
|
||||
mount -o noatime,compress=zstd,space_cache=v2,discard=async,subvol=@log /dev/mapper/cryptroot /mnt/var/log
|
||||
mount -o noatime,compress=zstd,space_cache=v2,discard=async,subvol=@cache /dev/mapper/cryptroot /mnt/var/cache
|
||||
|
||||
mount /dev/vda1 /mnt/boot
|
||||
|
||||
pacstrap /mnt base linux linux-lts linux-zen linux-firmware amd-ucode vim git btrfs-progs
|
Loading…
Reference in a new issue