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

Signed-off-by: Florian Pritz <bluewind@xinu.at>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Florian Pritz 2013-06-17 11:02:45 +02:00 committed by Pierre Schmitz
parent 8c4553f68c
commit 29e62278a7
1 changed files with 4 additions and 1 deletions

View File

@ -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[@]}" \
"$@"