Zuletzt aktiv 1771764666

Änderung 517576696468a829c980ed9a62c2b88a6d80aefe

arch-install-btrfs.sh Orginalformat
1ESP=/dev/nvme0n1p1
2ROOT=/dev/nvme0n1p2
3SWAPFILESIZE=2G
4
5mkfs.btrfs -L ROOT $ROOT
6
7mount $ROOT /mnt
8btrfs sub create /mnt/@
9btrfs sub create /mnt/@swap
10btrfs sub create /mnt/@home
11btrfs sub create /mnt/@pkg
12btrfs sub create /mnt/@snapshots
13btrfs sub create /mnt/@vm
14umount /mnt
15
16# For configure mount options, see https://btrfs.wiki.kernel.org/index.php/FAQ#Can_I_mount_subvolumes_with_different_mount_options.3F
17mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@ $ROOT /mnt
18mkdir -p /mnt/{boot,home,var/cache/pacman/pkg,.snapshots,btrfs,/var/lib/libvirt}
19mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@home $ROOT /mnt/home
20mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@pkg $ROOT /mnt/var/cache/pacman/pkg
21mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@snapshots $ROOT /mnt/.snapshots
22mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@vm $ROOT /mnt/var/lib/libvirt
23mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvolid=5 $ROOT /mnt/btrfs
24mount $ESP /mnt/boot
25
26# Create swapfile
27btrfs filesystem mkswapfile --size $SWAPFILESIZE --uuid clear /mnt/btrfs/@swap/swapfile
28swapon /mnt/btrfs/@swap/swapfile
arch-install-chroot.sh Orginalformat
1# Replace hostname with the name for your host
2export HOST=hostname
3# Replace Europe/London with your Region/City
4export TZ="Europe/London"
5
6echo $HOST > /etc/hostname
7cat << EOF >> /etc/hosts
8127.0.0.1 localhost
9::1 localhost
10127.0.1.1 $HOST.localdomain $HOST
11EOF
12
13ln -sf /usr/share/zoneinfo/$TZ /etc/localtime
14# Sync system time to hardware clock
15hwclock --systohc
16
17# - set locale
18echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
19#echo "zh_CN.UTF-8 UTF-8" >> /etc/locale.gen
20locale-gen
21echo 'LANG=en_US.UTF-8' > /etc/locale.conf
22