r/AlpineLinux • • May 21 '26

diskless apkovl error : /sbin/init not found

Hi, since version 3.22, i have this issue on diskless install :

> setup alpine and config seems to go well.
> after reboot i have this message :
/sbin/init not found, launching initramfs emergency recovery shell....etc.

the only way to boot is to delete the apkovl file and reboot.

the last iso image i can use without issue is : 3.22.0. (then i can install without issue and do apk update & upgrade to 3.22.4.) the few other more recent i tested all has the same issue the seem to be from the apkovl file... (3.23.x,...)

i have been using alpine for a very long time, and always kept using latest version. so did i miss something in the past 2 years regarding some new diskless config ? any tips to troubleshoot ?

Thanks,

Pic 2 : on boot
5 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/SSC_Fan May 23 '26

OK, so the problem is only with 3.23.

Try to start the system with debug option, it should mirror the commands being used during the startup and see if apkovl is being accessed and unpacked correctly. It all (your settings) should be in the sysroot folder.

If it is there issue: apk add -p sysroot - it'll install all apks from your config. Then issue the exit command or just press Ctrl+C and your system should be booted.

If however the sysroot folder is empty, mining your apkovl is not accessed unpack it manually by tar zxf path/to/apkovl -C /sysroot and then do the above commands.

This should help, good luck!

1

u/Responsible_Order808 Jun 22 '26

I found the issue: a local APK installed for testing before the install introduced its own dependencies, such as musl. Even after uninstalling that test APK, the world file retained the old dependencies. Consequently, the installation included a world file containing outdated dependencies with their SHA1 hashes, preventing updates. These legacy dependencies were incompatible with versions 3.23 and 3.24. The issue is now resolved by discontinuing the use of that test APK.