From 85dc669ddf2b4ce0d8d54970e098a5a03627a3bb Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Mon, 14 Nov 2016 11:00:56 +0800 Subject: [PATCH] Mount magisk.img with option suid Should fix #12, hope so :) --- scripts/magic_mask.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/magic_mask.sh b/scripts/magic_mask.sh index 7ed9a1085..9affb4e4a 100644 --- a/scripts/magic_mask.sh +++ b/scripts/magic_mask.sh @@ -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 :("