Commit 85dc669d authored by topjohnwu's avatar topjohnwu

Mount magisk.img with option suid

Should fix #12, hope so :)
parent 397c1a1c
......@@ -304,7 +304,7 @@ case $1 in
if [ `cat /proc/mounts | grep $MOUNTPOINT >/dev/null 2>&1; echo $?` -ne 0 ]; then
loopsetup $IMG
if [ ! -z "$LOOPDEVICE" ]; then
mount -t ext4 -o rw,noatime $LOOPDEVICE $MOUNTPOINT
mount -t ext4 -o rw,noatime,suid $LOOPDEVICE $MOUNTPOINT
fi
fi
......@@ -336,7 +336,7 @@ case $1 in
fi
loopsetup $IMG
if [ ! -z "$LOOPDEVICE" ]; then
mount -t ext4 -o rw,noatime $LOOPDEVICE $MOUNTPOINT
mount -t ext4 -o rw,noatime,suid $LOOPDEVICE $MOUNTPOINT
fi
if [ `cat /proc/mounts | grep $MOUNTPOINT >/dev/null 2>&1; echo $?` -ne 0 ]; then
log_print "magisk.img mount failed, nothing to do :("
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment