Commit 29e62278 authored by Florian Pritz's avatar Florian Pritz Committed by Pierre Schmitz

arch-nspawn: remove leading - from the machine name/hostname

Signed-off-by: default avatarFlorian Pritz <bluewind@xinu.at>
Signed-off-by: default avatarPierre Schmitz <pierre@archlinux.de>
parent 8c4553f6
......@@ -98,8 +98,11 @@ copy_hostconf
eval $(grep '^CARCH=' "$working_dir/etc/makepkg.conf")
machine_name="${working_dir//\//-}"
machine_name="${machine_name#-}"
exec ${CARCH:+setarch "$CARCH"} systemd-nspawn 2>/dev/null \
-D "$working_dir" \
--machine "${working_dir//\//-}" \
--machine "$machine_name" \
"${mount_args[@]}" \
"$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment