After boot, the stock system looks for a file matching *.apkovl in all available filesystems, applies it, and then installs any missing apk packages from a local cache. alpine-make-rootfs will copy the files from the root directory, install the packages from the packages file, and run the setup.sh script in a chroot. #!/bin/sh set -e rc-update add devfs sysinit rc-update add dmesg sysinit rc-update add hwclock boot rc-update add modules boot rc-update add sysctl boot rc-update add hostname boot rc-update add bootmisc boot rc-update add syslog boot rc-update add klogd boot rc-update add networking boot rc-update add seedrng boot rc-update add mount-ro shutdown rc-update add killprocs shutdown rc-update add acpid default rc-update add crond default rc-update add local default rc-update add…