avd_magisk: support rootfs without sbin

This commit is contained in:
vvb2060 2025-02-27 15:14:52 +08:00 committed by John Wu
parent 5f2ca81e86
commit dddd41c95b

View File

@ -93,8 +93,8 @@ if mount | grep -q rootfs; then
# Legacy rootfs
mount -o rw,remount /
rm -rf /root
mkdir /root
chmod 750 /root
mkdir /root /sbin 2>/dev/null
chmod 750 /root /sbin
ln /sbin/* /root
mount -o ro,remount /
mount_sbin