Adding vlan package to apkovl renders custom ISO unbootable
I'm hitting an issue where an Alpine ISO stops booting completely if I add the vlan
package to a custom ISO and include it in /etc/apk/world
in an apkovl
file embedded into the ISO as described on the wiki page for custom builds.
An example of the error can be found below, booted in QEMU:
Inspecting the vlan
package shows it only contains a few scripts, and all live inside either /etc/if-pre-up.d
or /etc/if-post-down.d
. I'm wondering if there's some kind of race condition with networking and runlevels that gets introduced when the vlan
package is layered into the live system, but I'm struggling to work out what it might be.
For convenience, I've put together a complete MVP proof of concept that will produce a bugged ISO in this repository. Running it as-is will produce the broken ISO. Removing the vlan
package from the genapkovl-bugreport.sh
file stops the problem from occurring and the generated ISO is fully functional.
Any ideas what I'm missing here? I'd really like to be able to build a read-only system that can boot from RAM as a router and having VLAN support is critical for this.