Skip to content

Instantly share code, notes, and snippets.

@chreniuc
Last active April 30, 2018 20:41
Show Gist options
  • Save chreniuc/c8ae81e11f6255a94e0f43247ffd60c1 to your computer and use it in GitHub Desktop.
Save chreniuc/c8ae81e11f6255a94e0f43247ffd60c1 to your computer and use it in GitHub Desktop.
Configure Artix Linux Part 1
#!/bin/bash
# Source https://paul.grozav.info/2018/04/13/artix-linux/
# By now you should have done those steps:
# 1. You boot the iso, then check that you have a working internet connection(ping google.com or something).
# 2. You use fdisk to partition you hdd. I created only one partition
# 3. You format it using mkfs.ext4
# 4. And mount it to /mnt: mount /dev/sda1 /mnt
# 5. I’ve commented all servers in /etc/pacman.d/mirrorlist and added: https://mirrors.dotsrc.org/artix-linux/repos/$repo/os/$arch.
echo "Configuring Artix linux..."
#Fix a bug in their script
sed -e 's/${hostcache} && pacman/${hostcache} || pacman/g' -e 's/${interactive} && pacman/${interactive} || pacman/g' -i /usr/bin/basestrap
#Install base stuff on you new disk:
basestrap -i /mnt base openrc-system openrc-world systemd-dummy libsystemd-dummy # Accept defaults (ENTER)
# Generate your fstab:
fstabgen -U /mnt >> /mnt/etc/fstab
# Chroot to the new system:
artools-chroot /mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment