[arch-projects] [devtools][PATCH] arch-nspawn: remove leading - from the machine name/hostname
Florian Pritz
bluewind at xinu.at
Thu Jul 25 17:28:19 EDT 2013
Not yet applied. Bumping.
On 17.06.2013 11:02, Florian Pritz wrote:
> Signed-off-by: Florian Pritz <bluewind at xinu.at>
> ---
>
> This makes perl build again.
>
> arch-nspawn.in | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/arch-nspawn.in b/arch-nspawn.in
> index 8ef39ed..441b502 100644
> --- a/arch-nspawn.in
> +++ b/arch-nspawn.in
> @@ -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[@]}" \
> "$@"
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20130725/3fc123c6/attachment.asc>
More information about the arch-projects
mailing list