apk add with --root and --arch armhf fails install scripts for musl, busybox, and alpine-baselayout
Hello,
I’m a contributor to the docker-alpine project. We are currently trying
to add support to multiple architectures other than x86_64 to our
docker images.
We’ve come across an issue that seems to be with some of the core alpine
packages.
Our builder runs alpine v3.2.3, so I’d be happy to hear if this was fixed recently and we’d just need to update. We have another method that we could implement, but I thought it’d be good to report this if it’s not the intended behavior.
Inside our builder container: uname -a
is
Linux f40247e71fe2 4.4.0-1031-aws #40-Ubuntu SMP Thu Aug 10 11:29:58 UTC 2017 x86_64 Linux
Command:
apk --root /var/tmp/alpine-docker-rootfs-XXXXFlDFeh --update-cache --keys-dir /etc/apk/keys add --arch armhf --initdb alpine-baselayout alpine-keys apk-tools libc-utils
Output:
@
fetch
http://dl-cdn.alpinelinux.org/alpine/v3.6/main/armhf/APKINDEX.tar.gz
fetch
http://dl-cdn.alpinelinux.org/alpine/v3.6/community/armhf/APKINDEX.tar.gz
(1/11) Installing musl (1.1.16-r13)
(2/11) Installing busybox (1.26.2-r6)
Executing busybox-1.26.2-r6.post-install
ERROR: busybox-1.26.2-r6.post-install: script exited with error 1
(3/11) Installing alpine-baselayout (3.0.4-r0)
Executing alpine-baselayout-3.0.4-r0.pre-install
ERROR: alpine-baselayout-3.0.4-r0.pre-install: script exited with error
1
Executing alpine-baselayout-3.0.4-r0.post-install
ERROR: alpine-baselayout-3.0.4-r0.post-install: script exited with error
1
(4/11) Installing alpine-keys (2.1-r1)
(5/11) Installing libressl2.5-libcrypto (2.5.5-r0)
(6/11) Installing libressl2.5-libssl (2.5.5-r0)
(7/11) Installing zlib (1.2.11-r0)
(8/11) Installing apk-tools (2.7.2-r0)
(9/11) Installing scanelf (1.2.2-r0)
(10/11) Installing musl-utils (1.1.16-r13)
(11/11) Installing libc-utils (0.7.1-r0)
Executing busybox-1.26.2-r6.trigger
ERROR: busybox-1.26.2-r6.trigger: script exited with error 1
2 errors; 3 MiB in 11 packages
@
Maintainers PTAL
busybox, alpine-baselayout: Natanael Copa
musl: Timo Teräs
Please tell me if you need any more info. Thanks guys for such a great project.
(from redmine: issue id 7767, created on 2017-08-26)