diff options
| author | Brad Clawsie <brad@b7j0c.org> | 2025-11-19 13:24:51 -0600 |
|---|---|---|
| committer | Brad Clawsie <brad@b7j0c.org> | 2025-11-19 13:24:51 -0600 |
| commit | e8a05fe1940475dfdb4272a7e7b3a1517e301af5 (patch) | |
| tree | fc7ee8a4b92cb623241d76bfe962499d46d1942c /nspawn | |
| parent | dc2bc7f98dd1be0d718b7e747b8ffd58df67c3d0 (diff) | |
nspawn cloning
Diffstat (limited to 'nspawn')
| -rw-r--r-- | nspawn/clone.sh | 5 | ||||
| -rw-r--r-- | nspawn/go.nspawn | 10 | ||||
| -rwxr-xr-x | nspawn/make-go-container.sh | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/nspawn/clone.sh b/nspawn/clone.sh new file mode 100644 index 0000000..2256ab7 --- /dev/null +++ b/nspawn/clone.sh @@ -0,0 +1,5 @@ +cd /var/lib/machines +cp -a grokloc go +truncate -s 0 go/etc/machine-id +echo "go" | tee /var/lib/machines/go/etc/hostname +cp /etc/systemd/nspawn/grokloc.nspawn /etc/systemd/nspawn/go.nspawn diff --git a/nspawn/go.nspawn b/nspawn/go.nspawn new file mode 100644 index 0000000..a7f0a6e --- /dev/null +++ b/nspawn/go.nspawn @@ -0,0 +1,10 @@ +# /etc/systemd/nspawn/go.nspawn + +[Exec] +Boot=on + +[Files] +Bind=/var/local/nspawn-shared:/var/local/nspawn-shared + +[Network] +VirtualEthernet=no diff --git a/nspawn/make-go-container.sh b/nspawn/make-go-container.sh new file mode 100755 index 0000000..87e6e3e --- /dev/null +++ b/nspawn/make-go-container.sh @@ -0,0 +1 @@ +sudo pacstrap -K -c /var/lib/machines/grokloc aspell aspell-en base base-devel bat cpanminus fish fzf git git-delta gnupg go just neovim less man-db man-pages openssh pinentry postgresql postgresql-libs readline ripgrep sudo tig tmux unzip valkey zip |
