Created
March 31, 2015 00:44
-
-
Save tobert/bd7d4e309c7bfffdc9f3 to your computer and use it in GitHub Desktop.
Quick & (very) dirty Arch Linux toolbox for CoreOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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