libdevuansdk

common library for devuan's simple distro kits
git clone https://git.parazyd.org/libdevuansdk
Log | Files | Refs | Submodules | README | LICENSE

commit 25346228d46bc00a9129991723015d385587d705
parent 5c9bc1a0a4c5297ea8c835bca8b6f013fb91d5fd
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 27 Oct 2017 21:04:31 +0200

automatically pick up the correct qemu binary

Diffstat:
Mzlibs/helpers | 15++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/zlibs/helpers b/zlibs/helpers @@ -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() {