blob: 0a1934611d290582baff3b5ecb0634fcd9ae86c0 (
plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
loadkeys us
setfont ter-132n
# TK gparted commands
zpool create -f \
-o ashift=12 \
-O acltype=posixacl -O canmount=off \
-O dnodesize=auto -O normalization=formD \
-O atime=off -O xattr=sa -O mountpoint=none \
-R /mnt zroot /dev/nvme0n1p2
zfs create -o canmount=noauto -o mountpoint=/ zroot/rootfs
zpool set bootfs=zroot/rootfs zroot
zfs create zroot/rootfs/home
zfs mount zroot/rootfs
mkdir -p /mnt/etc/zfs
zpool set cachefile=/etc/zfs/zpool.cache zroot
cp /etc/zfs/zpool.cache /mnt/etc/zfs/zpool.cache
mkfs.vfat /dev/nvme0n1p1
mkdir /mnt/boot
mount /dev/nvme0n1p1 /mnt/boot
genfstab -U -p /mnt >> /mnt/etc/fstab
pacstrap /mnt base base-devel linux-lts linux-lts-headers linux-firmware grub efibootmgr nano vi zsh openssh networkmanager reflector
arch-chroot /mnt
echo -e '
[archzfs]
Server = https://archzfs.com/$repo/x86_64' >> /etc/pacman.conf
pacman-key -r DDF7DB817396A49B2A2723F7403BD972F75D9D76
pacman-key --lsign-key DDF7DB817396A49B2A2723F7403BD972F75D9D76
pacman -Sy zfs-dkms
pacman -Sy intel-ucode
# TK edit mkinitcpio.conf, removing fsck adding zfs before filesystems
mkinitcpio -p linux-lts
mkdir /boot/grub
nano /etc/default/grub # GRUB_CMDLINE_LINUX_DEFAULT="zfs=zroot/rootfs"
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=x86_64-efi --efi-directory=/boot
systemctl enable zfs.target zfs-import-cache zfs-mount zfs-import.target NetworkManager reflector.timer
ln -sf /usr/share/zoneinfo/US/Central /etc/localtime
hwclock --systohc
echo -e 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
echo 'KEYMAP=us' > /etc/vconsole.conf
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
echo velox > /etc/hostname
echo -e '127.0.0.1 localhost\n::1 localhost\n127.0.1.1 velox' >> /etc/hosts
echo "root:welcome" | chpasswd
chage -d 0 root
exit # done with chroot
# ...back in the installer shell...
umount -R /mnt
zfs umount -a
zpool export -a
|