summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2013-05-03 03:29:50 +0200
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2013-05-03 04:34:29 +0200
commit0e98bd8c485b2c55c3971823f99a13c41b1ed696 (patch)
tree6f318a5a00d7af8a7abd7e1e569515cc2dc939b7
parent453558c4bb44b4bff43fcd22f96d4cfe1dbcf6f1 (diff)
downloaddevtools-0e98bd8c485b2c55c3971823f99a13c41b1ed696.tar.xz
arch-nspawn: Set machine name
Recent changes to systemd-nspawn have it take the machine name from the chroot dir name, which isn't unique enough for our setup.
-rw-r--r--arch-nspawn.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index 0df4875..fdff31e 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -96,4 +96,4 @@ fi
build_mount_args
copy_hostconf
-exec systemd-nspawn -D "$working_dir" "${mount_args[@]}" "$@"
+exec systemd-nspawn -D "$working_dir" --machine "${working_dir//\//-}" "${mount_args[@]}" "$@"