diff --git a/pmb/build/init.py b/pmb/build/init.py index 4c6f28c0..6c90b7ea 100644 --- a/pmb/build/init.py +++ b/pmb/build/init.py @@ -61,7 +61,7 @@ def init(args, suffix="native"): apk_arch = pmb.parse.arch.from_chroot_suffix(args, suffix) # Add apk wrapper that runs native apk and lies about arch - if not os.path.exists(chroot + "/usr/local/bin/abuild-apk"): + if suffix.startswith("buildroot_") and not os.path.exists(chroot + "/usr/local/bin/abuild-apk"): with open(chroot + "/tmp/apk_wrapper.sh", "w") as handle: content = f""" #!/bin/sh