A stupid simple, yet powerful Bash script to bootstrap a minimal Arch Linux system environment from any existing Linux system. archstrap
streamlines the Arch Linux installer process, while avoiding the typical complications of ISO configurations and other complex setups. archstrap
sets up a tiny root filesystem with just the essential packages such as pacman
, pacstrap
and genfstab
After archstrap
execution, simply follow the ArchWiki installation guide starting at disk partitioning
git clone https://github.com/wick3dr0se/archstrap; cd "${_##*/}"
./archstrap [mountpoint] [rootfs_name]
If mountpoint is not specified environment variables $TMPDIR
and $XDG_RUNTIME_DIR
are checked. If those envs are empty, it will try to fallback to directory /tmp. on some systems they may be set to something undesirable, like seen in issue #11; if this is the case, export $TMPDIR
in your ~/.bash_profile, as discussed above
If no name is given for the root filesystem (rootfs_name), the filesystem will be named archrootfs
archstrap
must be executed as superuser
archstrap
verifies the gpg signature of the global mirror it uses. if it fails keys may need to be manually received as superuser
sudo gpg --receive-key <KEY>