Zuletzt aktiv 1771764666

fallrain hat die Gist bearbeitet 1721471979. Zu Änderung gehen

1 file changed, 3 insertions, 1 deletion

arch-install-btrfs.sh

@@ -25,4 +25,6 @@ mount $ESP /mnt/boot
25 25
26 26 # Create swapfile
27 27 btrfs filesystem mkswapfile --size $SWAPFILESIZE --uuid clear /mnt/btrfs/@swap/swapfile
28 - swapon /mnt/btrfs/@swap/swapfile
28 + swapon /mnt/btrfs/@swap/swapfile
29 +
30 + pacstrap -K /mnt base linux linux-firmware intel-ucode sof-firmware networkmanager man-db man-pages neovim grub efibootmgr zsh

fallrain hat die Gist bearbeitet 1721470439. Zu Änderung gehen

2 files changed, 49 insertions

arch-install-btrfs.sh(Datei erstellt)

@@ -0,0 +1,28 @@
1 + ESP=/dev/nvme0n1p1
2 + ROOT=/dev/nvme0n1p2
3 + SWAPFILESIZE=2G
4 +
5 + mkfs.btrfs -L ROOT $ROOT
6 +
7 + mount $ROOT /mnt
8 + btrfs sub create /mnt/@
9 + btrfs sub create /mnt/@swap
10 + btrfs sub create /mnt/@home
11 + btrfs sub create /mnt/@pkg
12 + btrfs sub create /mnt/@snapshots
13 + btrfs sub create /mnt/@vm
14 + umount /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
17 + mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@ $ROOT /mnt
18 + mkdir -p /mnt/{boot,home,var/cache/pacman/pkg,.snapshots,btrfs,/var/lib/libvirt}
19 + mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@home $ROOT /mnt/home
20 + mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@pkg $ROOT /mnt/var/cache/pacman/pkg
21 + mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@snapshots $ROOT /mnt/.snapshots
22 + mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvol=@vm $ROOT /mnt/var/lib/libvirt
23 + mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvolid=5 $ROOT /mnt/btrfs
24 + mount $ESP /mnt/boot
25 +
26 + # Create swapfile
27 + btrfs filesystem mkswapfile --size $SWAPFILESIZE --uuid clear /mnt/btrfs/@swap/swapfile
28 + swapon /mnt/btrfs/@swap/swapfile

arch-install-chroot.sh(Datei erstellt)

@@ -0,0 +1,21 @@
1 + # Replace hostname with the name for your host
2 + export HOST=hostname
3 + # Replace Europe/London with your Region/City
4 + export TZ="Europe/London"
5 +
6 + echo $HOST > /etc/hostname
7 + cat << EOF >> /etc/hosts
8 + 127.0.0.1 localhost
9 + ::1 localhost
10 + 127.0.1.1 $HOST.localdomain $HOST
11 + EOF
12 +
13 + ln -sf /usr/share/zoneinfo/$TZ /etc/localtime
14 + # Sync system time to hardware clock
15 + hwclock --systohc
16 +
17 + # - set locale
18 + echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
19 + #echo "zh_CN.UTF-8 UTF-8" >> /etc/locale.gen
20 + locale-gen
21 + echo 'LANG=en_US.UTF-8' > /etc/locale.conf
Neuer Älter