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

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

parent 8c4553f6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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[@]}" \
	"$@"