diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2013-05-03 04:52:32 +0200 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2013-05-06 01:50:05 +0200 |
commit | 1489f754197a7a013e17328f9cb2fb3d2e5bdfe9 (patch) | |
tree | ffdd21ffa36a37c45920fc1ec7908b651b33684c /arch-nspawn.in | |
parent | 7ca4eb82ddb791881dc5c666f0d2400f3904c152 (diff) | |
download | devtools-1489f754197a7a013e17328f9cb2fb3d2e5bdfe9.tar.xz |
arch-nspawn: setarch to CARCH
Allows calling makechrootpkg without worrying about the architecture
Diffstat (limited to 'arch-nspawn.in')
-rw-r--r-- | arch-nspawn.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in index fdff31e..b3dfbfb 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -96,4 +96,10 @@ fi build_mount_args copy_hostconf -exec systemd-nspawn -D "$working_dir" --machine "${working_dir//\//-}" "${mount_args[@]}" "$@" +eval $(grep '^CARCH=' "$working_dir/etc/makepkg.conf") + +exec ${CARCH:+setarch "$CARCH"} systemd-nspawn \ + -D "$working_dir" \ + --machine "${working_dir//\//-}" \ + "${mount_args[@]}" \ + "$@" |