ZFS Root stopped working on Alpine 3.18
Boot and root on ZFS work correctly on previous versions of Alpine Linux (i.e. 3.17 and 3.16) but fails on 3.18, panicking during boot:
Mounting root: ok: mkdir: can't create directory /sysroot//sys: Read-only file system mount: mounting /sys on /sysroot//sys failed: No such file or directory ... switch_root: can't execute /sbin/init: No such file or directory Kernel panic - not syncing: Attempted to kill init! exit code=0x00000100 ...
The attached script includes the detailed commands to recreate the issue.script.sh