summaryrefslogtreecommitdiff
path: root/nspawn
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2022-05-29 12:35:20 -0500
committerBrad Clawsie <brad@b7j0c.org>2022-05-29 12:35:20 -0500
commitc55aa1dce136d1afef6b9d05a03b76c5c41e077f (patch)
treee1faf11b68f2ce406fb7d7eabdfc7404ca13ef61 /nspawn
parent898b42ded6984f1ece1022b68d6bc50309b724a9 (diff)
added
Diffstat (limited to 'nspawn')
-rwxr-xr-xnspawn/export-scheme11
-rwxr-xr-xnspawn/import-scheme13
-rwxr-xr-xnspawn/start-scheme13
3 files changed, 7 insertions, 0 deletions
diff --git a/nspawn/export-scheme1 b/nspawn/export-scheme1
new file mode 100755
index 0000000..5500f34
--- /dev/null
+++ b/nspawn/export-scheme1
@@ -0,0 +1 @@
+sudo machinectl export-tar scheme1 > scheme1-export \ No newline at end of file
diff --git a/nspawn/import-scheme1 b/nspawn/import-scheme1
new file mode 100755
index 0000000..0ae7456
--- /dev/null
+++ b/nspawn/import-scheme1
@@ -0,0 +1,3 @@
+# scheme1 should be tar-export, important file be named scheme1
+# as that is how it will be imported in /var/lib/machines
+sudo machinectl import-tar scheme1 \ No newline at end of file
diff --git a/nspawn/start-scheme1 b/nspawn/start-scheme1
new file mode 100755
index 0000000..270586b
--- /dev/null
+++ b/nspawn/start-scheme1
@@ -0,0 +1,3 @@
+# make sure ./scheme1 -> /var/lib/machines is a symlink
+sudo systemd-nspawn --bind=/var/local/nspawn-shared:/var/local/nspawn-shared -b -D ./scheme1
+