Provide dummy systemd / systemd-libs
# pacman -Sy
# pacman -S artix-archlinux-support
Provide a dummy lib32-systemd
# pacman -S lib32-artix-archlinux-support
Add Arch Linux trusted keys
# pacman-key --populate archlinux
Edit repos
# vim /etc/pacman.conf
# Artix
[system]
Include = /etc/pacman.d/mirrorlist
[world]
Include = /etc/pacman.d/mirrorlist
[galaxy]
Include = /etc/pacman.d/mirrorlist
[lib32]
Include = /etc/pacman.d/mirrorlist
# Arch - because not everything has been ported
[extra]
Include = /etc/pacman.d/mirrorlist-arch
[multilib]
Include = /etc/pacman.d/mirrorlist-arch
Manipulate services
# dinitctl start service_name
# dinitctl stop service_name
# dinitctl reload service_name
# dinitctl restart service_name
# dinitctl enable service_name
# dinitctl disable service_name
# dinitctl list
Note: Enabling a service starts it immediately rather than only setting it to auto-start.
Enable service in a container or chrooted
# dinitctl --offline enable service_name
or
# dinitctl -o enable service_name
or
# ln -sf /etc/dinit.d/service_name /etc/dinit.d/boot.d/
Suspend to RAM (alternative to systemctl)
# loginctl suspend
Boot into a live Linux environment in UEFI mode and confirm that efivarfs is available
# df
efivarfs 128K 24K 100K 20% /sys/firmware/efi/efivar
Mount the / (root) partition and /boot/efi partition (e.g. sda2 and sda1)
# lsblk
# mount /dev/sda2 /mnt
# mount /dev/sda1 /mnt/boot/efi
Mount virtual pseudo-filesystems
# cd /mnt
# mount -t proc /proc proc
# mount -t sysfs /sys sys
# mount --bind /dev dev
# mount --bind /run run
# mount --bind /sys/firmware/efi/efivars sys/firmware/efi/efivars
Change root directory to the mounted target system
# chroot /mnt /bin/bash
Install boot loader
# grub-install
or
# grub-install --efi-directory=/boot/efi
or
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Artix
Regenerate GRUB configuration if needed
# grub-mkconfig -o /boot/grub/grub.cfg
Edit /etc/fstab to mount the EFI partition
# vim /etc/fstab
#UUID=D233-722D /boot/efi vfat defaults 0 1
LABEL=EFI /boot/efi vfat defaults 0 1
Exit chroot and unmount
# exit
# cd
# umount -R /mnt
Adjust the UEFI Boot Manager entries
# efibootmgr -v # display current information
# efibootmgr -o xxxx,yyyy # set boot order
# efibootmgr -b nnnn -A # optionally de-activate unwanted entries
# efibootmgr -b zzzz -B # optionally delete old entries
# efibootmgr -t 5 # optionally set timeout