-
Notifications
You must be signed in to change notification settings - Fork 0
/
u1.sh
38 lines (25 loc) · 1.1 KB
/
u1.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# для UEFI Intel Nvidia
timedatectl set-ntp true
wipefs --all /dev/sda
cfdisk /dev/sda
mkfs.btrfs -f /dev/sda2
mkfs.fat -F32 /dev/sda1
mount /dev/sda2 /mnt
cd /mnt
btrfs subvolume create ./@
btrfs subvolume create ./@home
cd
umount /mnt -R
mount -o rw,noatime,compress=zstd:3,ssd,ssd_spread,discard=async,space_cache=v2,subvol=/@ /dev/sda2 /mnt #для SSD
# mount -o rw,noatime,autodefrag,compress=zstd:3,space_cache=v2,subvol=/@ /dev/sda2 /mnt #для HDD
mkdir /mnt/home
mount -o rw,noatime,compress=zstd:3,ssd,ssd_spread,discard=async,space_cache=v2,subvol=/@home /dev/sda2 /mnt/home
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
pacstrap /mnt base base-devel linux-zen linux-zen-headers nano btrfs-progs plasma plasma-wayland-session egl-wayland sddm nftables iptables-nft realtime-privileges dbus-broker intel-ucode linux-firmware nvidia-dkms nvidia-utils lib32-nvidia-utils opencl-nvidia lib32-opencl-nvidia nvidia-settings networkmanager konsole dolphin kate
genfstab -U /mnt >> /mnt/etc/fstab
btrfs filesystem label /mnt "arch_os"
umount /usb
arch-chroot /mnt
# Liberty − 2023.06.30 16:48