Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clone_attr /sbin -> /root failed: No data available (os error 61) #31

Open
dontknowhy opened this issue Jun 23, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@dontknowhy
Copy link

Describe the bug
Run sudo waydroid_magisk install and boot Android.
And it just stuck in the boot process until it is timeout.

To Reproduce
After you realize this boy is failed,you can use sudo waydroid shell to discover what's wrong.

:/system/etc/init/magisk # /system/etc/init/magisk/magisk64 --auto-selinux --setup-sbin /system/etc/init/magisk
clone_attr /sbin -> /root failed: No data available (os error 61)

Expected behavior
A clear and concise description of what you expected to happen.

Logs
lxc-attach: waydroid: ../src/lxc/attach.c: lxc_attach_run_command: 1841 No such file or directory - Failed to exec "su"
Magisk isn't ready so we don't have any su command.

Desktop (please complete the following information):

  • OS: Debian GNU/Linux
  • Version: trixie
  • Waydroid Version: 068a143
  • DE;Plasma Wayland session

Additional context
Add any other context about the problem here.
I modified rc file but nothing goes right.

on post-fs-data
    start logd
    exec u:r:su:s0 root root -- /system/etc/init/magisk/magisk64 --auto-selinux --setup-sbin /system/etc/init/magisk
    exec u:r:su:s0 root root -- /system/etc/init/magisk/magiskpolicy --live --magisk "allow * magisk_file lnk_file *"
    mkdir /sbin/.magisk 700
    mkdir /sbin/.magisk/mirror 700
    mkdir /sbin/.magisk/block 700
    copy /system/etc/init/magisk/config /sbin/.magisk/config
    rm /dev/.magisk_unblock
    start tWToGj9AI
    wait /dev/.magisk_unblock 40
    rm /dev/.magisk_unblock

service tWToGj9AI /sbin/magisk --auto-selinux --post-fs-data
    user root
    seclabel u:r:su:s0
    oneshot

service IHBzNRXz7LJ58Y8 /sbin/magisk --auto-selinux --service
    class late_start
    user root
    seclabel u:r:su:s0
    oneshot

on property:sys.boot_completed=1
    mkdir /data/adb/magisk 755
    exec u:r:su:s0 root root -- /sbin/magisk --auto-selinux --boot-complete
   
on property:init.svc.zygote=restarting
    exec u:r:su:s0 root root -- /sbin/magisk --auto-selinux --zygote-restart
   
on property:init.svc.zygote=stopped
    exec u:r:su:s0 root root -- /sbin/magisk --auto-selinux --zygote-restart

PS: this is another .rc file, NOT bootanim.rc

@dontknowhy dontknowhy added the bug Something isn't working label Jun 23, 2024
@ayasa520
Copy link

Comment out the parts with #[cfg(feature = "selinux")] in get_attr and set_attr in native/src/base/files.rs of the Kitsune source code and recompile. Magisk continues to work, but Zygisk does not. I have no knowledge of Magisk; I just roughly compared the old code to find this workaround.

image

@nitanmarcel
Copy link
Owner

Comment out the parts with #[cfg(feature = "selinux")] in get_attr and set_attr in native/src/base/files.rs of the Kitsune source code and recompile. Magisk continues to work, but Zygisk does not. I have no knowledge of Magisk; I just roughly compared the old code to find this workaround.

image

Try to revert this for zygisk

KitsuneMagisk/Magisk@1eecd4b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants