mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
utils_functions: Added a check for the system_root
now on addon while flashing recovery usign mount point /system_root by which this is causing a flashing error. Let's first check and unmount /system_root if mounted Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
This commit is contained in:
parent
d089698475
commit
dc3d57deba
@ -252,6 +252,10 @@ mount_partitions() {
|
|||||||
[ -z $SLOT ] || ui_print "- Current boot slot: $SLOT"
|
[ -z $SLOT ] || ui_print "- Current boot slot: $SLOT"
|
||||||
|
|
||||||
# Mount ro partitions
|
# Mount ro partitions
|
||||||
|
if is_mounted /system_root; then
|
||||||
|
umount /system 2&>/dev/null
|
||||||
|
umount /system_root 2&>/dev/null
|
||||||
|
fi
|
||||||
mount_ro_ensure "system$SLOT app$SLOT" /system
|
mount_ro_ensure "system$SLOT app$SLOT" /system
|
||||||
if [ -f /system/init -o -L /system/init ]; then
|
if [ -f /system/init -o -L /system/init ]; then
|
||||||
SYSTEM_ROOT=true
|
SYSTEM_ROOT=true
|
||||||
|
Loading…
Reference in New Issue
Block a user