Improved pmbootstrap init
Created by: ollieparanoid
- Check if it's possible to create and read from a device node directly when initializing a chroot (closes #472 (closed))
- Copy the Qemu binary into the forign-arch chroots before initializing them, so the post-install scripts directly work during the chroot setup and we don't need to call
apk fix
afterwards - Use
pmb.helpers.repo.update()
, which only updates theAPKINDEX
files if they are older than 4 hours, instead of usingapk
's repo update function which always downloads theAPKINDEX
files- Chroot initialization
- Getting the initial
APKINDEX
to downloadapk-tools-static
- Updating the
APKINDEX
at the start ofpmbootstrap install
- Fixed a bug in
from_chroot_suffix
: thebuildroot_x86_64
has architecturex86_64
, notx86
. This was randomly discovered because Travis didn't have the APKINDEX files inbuildroot_x86_64
, because they didn't get mounted right.
All in all this PR will make the workflow a bit faster and pmbootstrap
will produce less traffic.