Skip to content

Instantly share code, notes, and snippets.

@tobert
Created March 31, 2015 00:44
Show Gist options
  • Save tobert/bd7d4e309c7bfffdc9f3 to your computer and use it in GitHub Desktop.
Save tobert/bd7d4e309c7bfffdc9f3 to your computer and use it in GitHub Desktop.
Quick & (very) dirty Arch Linux toolbox for CoreOS
#!/bin/sh
# /dev/sda3 is 200GB of XFS mounted on /srv
mkdir /srv/arch64
# my Arch install image is just a tarball of the root fs with all tools pre-installed
curl 192.168.10.10/installer/arch-x64-20150330.tar.gz |sudo tar -C /srv/arch64 -xzvf -
# start the Arch image the same way CoreOS's 'toolbox' script does
systemd-nspawn --directory=/srv/arch64 --capability=all --share-system --bind=/:/media/root --bind=/usr:/media/root/usr --user=root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment