summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-11-09 01:18:12 +0100
committerJonas Smedegaard <dr@jones.dk>2017-11-09 01:41:46 +0100
commit8b6a8d84a8d0700ff5dfd632b9d92089e82328e2 (patch)
tree76de836d27245c68314234294b4a2fcf332075e1
parent1c13107a6e00dc90e9b039999f1306385f072f19 (diff)
Fix resolve qemu binary to use, when dpkg-dev is not installed.
-rwxr-xr-xskel/multistrap-hooks/completion_50_configscript.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/skel/multistrap-hooks/completion_50_configscript.sh b/skel/multistrap-hooks/completion_50_configscript.sh
index aa54217..683d898 100755
--- a/skel/multistrap-hooks/completion_50_configscript.sh
+++ b/skel/multistrap-hooks/completion_50_configscript.sh
@@ -38,7 +38,7 @@ if [ "$arch" != "$arch_host" ]; then
cpu=$(dpkg-architecture -a"$arch" -qDEB_TARGET_GNU_CPU)
else
multiarch=$(basename "$(dirname "$(find "$fs/usr/lib" -type d -name libfakeroot)")")
- cpu=$(echo "multiarch" | cut -d- -f1)
+ cpu=$(echo "$multiarch" | cut -d- -f1)
fi
qemu=$(/usr/sbin/update-binfmts --display "qemu-$cpu" | grep -Po '(?<=interpreter = /usr/bin/).*') #'
fi