tautomatically pick up the correct qemu binary - libdevuansdk - common library for devuan's simple distro kits (HTM) git clone https://git.parazyd.org/libdevuansdk (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- (DIR) commit 25346228d46bc00a9129991723015d385587d705 (DIR) parent 5c9bc1a0a4c5297ea8c835bca8b6f013fb91d5fd (HTM) Author: parazyd <parazyd@dyne.org> Date: Fri, 27 Oct 2017 21:04:31 +0200 automatically pick up the correct qemu binary Diffstat: M zlibs/helpers | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) --- (DIR) diff --git a/zlibs/helpers b/zlibs/helpers t@@ -178,8 +178,21 @@ qemu_install_user() { req=(qemu_bin strapdir) ckreq || return 1 + [[ "$(uname -m)" =~ "arm" ]] && return + [[ "$(uname -m)" =~ "aarch" ]] && return + notice "installing qemu-user-static" - sudo cp $qemu_bin $strapdir/usr/bin + case "$arch" in + armel) + sudo cp "$armel_qemu_bin" "$strapdir/usr/bin" + ;; + armhf) + sudo cp "$armhf_qemu_bin" "$strapdir/usr/bin" + ;; + arm64) + sudo cp "$arm64_qemu_bin" "$strapdir/usr/bin" + ;; + esac } dpkgdivert() {