Skip to content

Instantly share code, notes, and snippets.

@BenSchZA
Last active October 18, 2018 16:04
Show Gist options
  • Save BenSchZA/3f6ad5ccb578d986f15685e0aa2f0bd1 to your computer and use it in GitHub Desktop.
Save BenSchZA/3f6ad5ccb578d986f15685e0aa2f0bd1 to your computer and use it in GitHub Desktop.
# https://wiki.archlinux.org/index.php/Installing_Arch_Linux_on_ZFS
wifi-menu
ping archlinux.org
timedatectl set-ntp true
# https://wiki.archlinux.org/index.php/GNU_Parted
parted /dev/nvme0n1
> mklabel gpt
> mkpart primary fat32 1MiB 551MiB
> set 1 esp on
> mkpart primary linux-swap 551MiB 4.551GiB
> print free
> mkpart primary ext4 4887MB 100%
mkfs.fat -F32 /dev/nvme0n1p1
mkswap /dev/nvme0n1p2
swapon /dev/nvme0n1p2
mkfs.ext4 /dev/nvme0n1p3
modprobe zfs
zpool create -f -o ashift=13 tank /dev/disk/by-id/id-to-partition-part_3
zfs create -o mountpoint=none tank/data
zfs create -o mountpoint=none tank/ROOT
zfs create -o compression=lz4 -o mountpoint=/ tank/ROOT/default
zfs create -o compression=lz4 -o mountpoint=/home tank/data/home
zfs set acltype=posixacl tank/ROOT/default
zfs umount -a
zfs set mountpoint=/ tank/ROOT/default
zfs set mountpoint=legacy tank/data/home
zpool set bootfs=tank/ROOT/default tank
zpool export tank
zpool import -d /dev/disk/by-id -R /mnt tank
zpool set cachefile=/etc/zfs/zpool.cache tank
mkdir /mnt/boot
mount /dev/... /mnt/boot
mount -t zfs tank/data/home /mnt/home
mkdir -p /root/{customrepo/x86_64,pkg}
wget https://archive.archlinux.org/packages/l/linux/linux-4.18.12.arch1-1-x86_64.pkg.tar.xz
repo-add /root/customrepo/x86_64/customrepo.db.tar.gz /root/customrepo/x86_64/linux-4.18.12.arch1-1-x86_64.pkg.tar.xz
pacstrap /mnt base base-devel grub-efi-x86_64 vim efibootmgr dialog wpa_supplicant konsole
passwd
useradd ...
bootctl --path=/boot install
nano /boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options zfs=vault/sys/chin/ROOT/default rw
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ArchLinux
# canonical error...?
ln -s /dev/sda2 /dev/ata-SAMSUNG_SSD_830_Series_S0VVNEAC702110-part2
# https://wiki.archlinux.org/index.php/General_recommendations#Graphical_user_interface
pacman -S xorg gdm i3
systemctl enable gdm.service
# https://wiki.archlinux.org/index.php/time
timedatectl list-timezones
timedatectl set-timezone Africa/Johannesburg
sudo netctl-auto enable-all
# install yay aur manager
# install and setup finishing touches
yay -S systemd-zpool-scrub zfs-auto-snapshot
yay -S --needed - < /run/media/bscholtz/Transcend/RsyncHome/Backup/pacman-installed-packages_no-versions.txt
zfs create -o compression=lz4 -o dedup=on -o mountpoint=legacy tank/data/Media
mount -t zfs tank/data/Media /home/bscholtz/Media
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment