ITADN

Magisk patched with avbroot fails to find preinit dir

#610ClosedrushiiMachine 创建于 2026-06-09
R
rushiiMachinecommented
Hello! I'm using avbroot to add Magisk v30.7 to a GrapheneOS 2025012701 OTA for Pixel 4a (sunfish). Unfortunately, it seems that the boot image is being patched incorrectly somehow, as every time I open the Magisk manager app, a dialog pops up saying `Your device needs reflash Magisk to work properly. Please reinstall Magisk within app, Recovery mode cannot get correct device info.` The correct preinit device for this phone is `metadata` In Magisk's logs, it shows that ``` 06-09 09:23:19.900 962 964 W : mount: preinit dir not found ``` [magisk_log_2026-06-09T09.24.05.log](https://github.com/user-attachments/files/28770019/magisk_log_2026-06-09T09.24.05.log) However, root, modules, and Zygisk (if using pixincreate's Magisk fork on GrapheneOS, or NeoZygisk) still works fine. Conversely, if I patch the boot image through the Magisk manager app and flash it directly, then it works fine: ``` 06-09 09:15:59.888 959 961 I : * Found preinit dir: /metadata/watchdog/magisk ``` [magisk_log_2026-06-09T09.21.19.log](https://github.com/user-attachments/files/28770015/magisk_log_2026-06-09T09.21.19.log)
关闭于 2026-06-13 4 条评论