summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-08-31 09:43:00 -0400
committerDave Reisner <dreisner@archlinux.org>2014-09-22 08:25:43 -0400
commitd83805bc54b04d8c63982784e1a220a2bd87e3b0 (patch)
tree08059df269509586a82797651d00fe5aa93cb759
parentaf6c0a0f6a7644f583f2d83ba7a61e82b77bdc37 (diff)
downloaddevtools-d83805bc54b04d8c63982784e1a220a2bd87e3b0.tar.xz
nspawn: skip machine registration
No need to do this since we don't run an init system in the build root.
-rw-r--r--arch-nspawn.in5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index 4436a0e..1879442 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -94,11 +94,8 @@ copy_hostconf
eval $(grep '^CARCH=' "$working_dir/etc/makepkg.conf")
-machine_name="${working_dir//[![:alnum:]_-]/-}"
-machine_name="${machine_name#-}"
-
exec ${CARCH:+setarch "$CARCH"} systemd-nspawn 2>/dev/null \
-D "$working_dir" \
- --machine "$machine_name" \
+ --register=no \
"${mount_args[@]}" \
"$@"