diff options
Diffstat (limited to 'nspawn')
| -rwxr-xr-x | nspawn/export-arch1 | 1 | ||||
| -rwxr-xr-x | nspawn/import-arch1 | 3 | ||||
| -rwxr-xr-x | nspawn/start-arch1 | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/nspawn/export-arch1 b/nspawn/export-arch1 new file mode 100755 index 0000000..f024144 --- /dev/null +++ b/nspawn/export-arch1 @@ -0,0 +1 @@ +sudo machinectl export-tar arch1 > arch1-export
\ No newline at end of file diff --git a/nspawn/import-arch1 b/nspawn/import-arch1 new file mode 100755 index 0000000..0935613 --- /dev/null +++ b/nspawn/import-arch1 @@ -0,0 +1,3 @@ +# arch1 should be tar-export, important file be named arch1 +# as that is how it will be imported in /var/lib/machines +sudo machinectl import-tar arch1
\ No newline at end of file diff --git a/nspawn/start-arch1 b/nspawn/start-arch1 new file mode 100755 index 0000000..0e12b71 --- /dev/null +++ b/nspawn/start-arch1 @@ -0,0 +1,3 @@ +# make sure ./arch1 -> /var/lib/machines is a symlink +sudo systemd-nspawn --bind=/var/local/nspawn-shared:/var/local/nspawn-shared -b -D ./arch1 + |
