AKMS builds modules in a sandbox using bubblewrap. Bubblewrap unfortunately does not work in chroot environment, thus breaking pmbootstrap. While a PR has been proposed upstream, history shows that upstream takes a while to consider PRs. Thus, to unblock usage of AKMS, this adds a patched version that allows disabling of sandbox using `--no-sandbox` argument or by adding `use_sandbox=false` to `/etc/akms.conf`. When building in chroot environment, sandboxing is automatically disabled. The aport handles conflicts with akms by setting `pkgver=9999$_pkgver`, thus always overriding Alpine's package. Upstream PR: https://github.com/jirutka/akms/pull/19 Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6604
12 lines
182 B
Bash
12 lines
182 B
Bash
#!/bin/sh
|
|
|
|
HOOK_FILE='/usr/share/kernel-hooks.d/akms.hook'
|
|
|
|
for link in /etc/kernel-hooks.d/*; do
|
|
if [ "$(readlink -f "$link")" = "$HOOK_FILE" ]; then
|
|
rm "$link"
|
|
fi
|
|
done
|
|
|
|
exit 0
|