axonasif / rusty-magisk

Magisk support layer for android-x86
GNU General Public License v2.0
34 stars 6 forks source link

Rusty magisk: Root (/) is not writeable (os error 30) bliss 14.3 32bit #3

Open KSMaan45 opened 3 years ago

KSMaan45 commented 3 years ago

So i installed bliss 14.3 32bit version exact iso name :- BlissOS-14.3-x86-202106172025_k-google-5.4.112-lts-ax86_m-r_foss_cros-hd.iso and found that after installation or in live cd it return me following error :-

rusty-magisk: Root(/) is not writeable, failed to initialize /sbin: read only file system (os error 30)

So i extract the system.img from system.sfs in same path and delete the system.sfs of that directory and tried again but still the same error then i boot in debug mode to find more information so following is the debug text :-

Running MiraBSD Korn Shell... libc: Fatal signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 0xf0263eec in tid Illegal instruction

After passing that screen same rusty magisk error also my keyboard all lights starts to blink and it reboots. For all this i got the geardump file attached in the post so if need more information let me know.

geardump.zip

kirito9723 commented 3 years ago

Same thing happen to me 😥 I tired to fix it 😖

sickcodes commented 3 years ago

Same error

electrikjesus commented 3 years ago

A fix for this is in review and if that works for the majority, it's a simple push to Bliss OS source

sickcodes commented 3 years ago

Confirmed to be working in beta release

Dinibewerbig commented 3 years ago

Can we have access to the beta release, please?

HuskyDG commented 2 years ago

@axonasif i knew why this error happened. Maybe you rusty-magisk try to remount (/) with system image SFS format and make /sbin folder on Android 11 i also have the problem while system image format is system.sfs while system.img doesn't have problem.

Solution: Make magisk exist in /dev/**** tmpfs instead if /sbin is not exist. Magisk can handle these problem and will add itself into /system/bin like a module. This is what Magisk works on Android 11 when /sbin doesn't exist.

axonasif commented 2 years ago

@HuskyDG FYI: I use overlayfs on /system to make it writable for system as root builds. Magisk binaries are put to /system/bin

HuskyDG commented 2 years ago

@HuskyDG FYI: I use overlayfs on /system to make it writable for system as root builds. Magisk binaries are put to /system/bin

@axonasif Ok thanks, Maybe i must review your code If this was overlayed with overlayfs, it is very werid it has Root (/) is not writeable problem. Maybe you can follow my solution

igormacedo commented 2 years ago

Any updates on this issue? I just tested several iso images on the blissos-dev sourceforge repository, trying to install them in VirtualBox VM, and all of them presented the same error "rusty-magisk: Root(/) is not writeable, failed to initialize /sbin: read only file system (os error 30)".

HuskyDG commented 2 years ago

Any updates on this issue? I just tested several iso images on the blissos-dev sourceforge repository, trying to install them in VirtualBox VM, and all of them presented the same error "rusty-magisk: Root(/) is not writeable, failed to initialize /sbin: read only file system (os error 30)".

Rusty-magisk try to make /sbin while root is read-only. According to axon, it should mount overlayfs on /system/bin and place magisk binaries here but it is not a good idea because it does not match how magisk was programmed and will cause some problem if any module magic mount new file into /system/bin. Moreover, rusty-magisk implementation does not match magiskinit. You can try this http://github.com/huskydg/initrd-magisk