From 66f612510a5df14f4a017809e1eec671aee8cc26 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 11 May 2014 00:55:00 -0400 Subject: Add changes discussed with Dave Reisner on the arch-projects list. - Simplify the commented out call to find HOST_NAME_MAX - Use `systemd-nspawn -q` instead of 2>/dev/null - Use Bash 4.1's new {var}>&- syntax in lock_close() --- arch-nspawn.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch-nspawn.in') diff --git a/arch-nspawn.in b/arch-nspawn.in index ca7edbe..e8b68cf 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -96,14 +96,14 @@ eval $(grep '^CARCH=' "$working_dir/etc/makepkg.conf") machine_name="${working_dir//[![:alnum:]_-]/-}" machine_name="${machine_name#-}" -#HOST_NAME_MAX="$(printf '%s\n' '#include ' 'HOST_NAME_MAX'|cpp -|sed -n '$p')" +#HOST_NAME_MAX="$(cpp -include limits.h <</dev/null \ +exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \ -D "$working_dir" \ --machine "$machine_name" \ "${mount_args[@]}" \ -- cgit v1.2.3-70-g09d2