This is an old revision of the document!
Install arch linux with zfs root
- Obtain latest ISO from archlinux.org and burn it to an ISO
- Boot up and change / size \
- mount a swap partition
- mount -o remount,size=16G /run/archiso/cowspace
- Add zfs support
curl -s https://archzfs.leibelt.de/media/setup/init | bash
zgenhostid -f 0x00bab10c
- Create zfs pool
- Create file systems
- Export/Import pool and mount file systems
- Install the system
pacstrap /mnt linux linux-headers linux-firmware base vim amd-ucode networkmanager sudo openssh rsync
- Create a normal user and add to sudoers/wheel group
- useradd -G wheel some_user
- passwd some_user
- visudo to allow wheel group to sudo
- su - some_user
- Install paru
- sudo pacman -S –needed base-devel git
- git clone https://aur.archlinux.org/paru.git
- cd paru
- makepkg -si
- Install zfs support
- paru -S zfs-utils
- paru -S zfs-dkms
- exit to root
- finish setup
zgenhostid -f 0x00bab10c
- edit /etc/mkinitcpio.conf
- remove fsck, add zfs resume
mkinitcpio -P
- set up services
systemctl disable zfs-import-cache.service systemctl mask zfs-import-cache.service systemctl enable zfs-import-scan.service systemctl enable zfs-mount.service systemctl enable zfs.target systemctl enable zfs-volumes.target systemctl enable zfs-import.target systemctl enable zfs-zed.service systemctl enable NetworkManager
- Time
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime hwclock --systohc
- locale
sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen locale-gen echo "LANG=en_US.UTF-8" > /etc/locale.conf
- set root password
- vconsole
echo -e "KEYMAP=us\n#FONT=latarcyrheb-sun32" > /etc/vconsole.conf
- hostname/hosts
echo tas > /etc/hostname
