casualsnek / waydroid_script

Python Script to add OpenGapps, Magisk, libhoudini translation library and libndk translation library to waydroid !
GNU General Public License v3.0
1.53k stars 147 forks source link

read-only filesystem error when trying to install Magisk #58

Open cobalt2727 opened 1 year ago

cobalt2727 commented 1 year ago

tl;dr is in the title, console output below:

cobalt@ideapad-flex-5:~/waydroid_script$ sudo python3 waydroid_extras.py -m
/home/cobalt/.cache/waydroid_script/downloads
==> Found system image: /var/lib/waydroid/images/system.img
==> Resizing system image....
==> Failed to resize image '/var/lib/waydroid/images/system.img' .. !  resize2fs 1.46.5 (30-Dec-2021)
resize2fs: Read-only file system While checking for on-line resizing support
Filesystem at /var/lib/waydroid/images/system.img is mounted on /var/lib/waydroid/rootfs; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1

==> You can exit and retry with sudo or force continue (May fail installation !), Continue ? [y/N]: y
==> Unmounting .. 
==> Extracting archive...
==> Installing magisk now ...
Traceback (most recent call last):
  File "/home/cobalt/waydroid_script/waydroid_extras.py", line 594, in <module>
    main()
  File "/home/cobalt/waydroid_script/waydroid_extras.py", line 589, in main
    install_magisk()
  File "/home/cobalt/waydroid_script/waydroid_extras.py", line 501, in install_magisk
    with open(os.path.join(sys_image_mount, "system", "bin", "init-magisk.sh"), "w") as imf:
OSError: [Errno 30] Read-only file system: '/tmp/waydroidimage/system/bin/init-magisk.sh'

This is running on Pop!_OS 22.04

EvilBoi123 commented 1 year ago

yeah also happen to me in Archlinux

ayasa520 commented 1 year ago

I think it's fine if you just reboot. Second, the script to install magisk doesn't work for the latest waydroid image. You can check out this fork https://github.com/LegacyGamerHD/waydroid_script

cobalt2727 commented 1 year ago

will there be a PR to this repo later?

Gentran commented 1 year ago

Try run e2fsck on system.img before running the script.

ayasa520 commented 1 year ago

will there be a PR to this repo later?

I think this repo is no longer maintained. Anyway this fork I mentioned is working. https://github.com/LegacyGamerHD/waydroid_script/pull/2#issuecomment-1352636617

casualsnek commented 1 year ago

will there be a PR to this repo later?

I think this repo is no longer maintained. Anyway this fork I mentioned is working. LegacyGamerHD#2 (comment)

I will still accept PR(s) after checking, the repo is not too active as i no longer mess around with waydroid, i will start working on cleaning up code and try to update stuffs asap !