Commit dd5fecb3 authored by LuK1337's avatar LuK1337 Committed by Łukasz Patron
Browse files

addonsu: Pass filesystem type for mounting /system_root when needed

* Some TWRP releases expect -t parameter.

Change-Id: I5f4a55883b94e821bfcef06df7d121db1d6145a4
parent 1c29c373
...@@ -14,7 +14,9 @@ if [ "$system_as_root" == "true" ]; then ...@@ -14,7 +14,9 @@ if [ "$system_as_root" == "true" ]; then
block=/dev/block/bootdevice/by-name/system block=/dev/block/bootdevice/by-name/system
fi fi
mkdir -p /system_root mkdir -p /system_root
if mount -o rw $block /system_root; then if mount -o rw $block /system_root ||
mount -o rw $block /system_root -t ext4 ||
mount -o rw $block /system_root -t f2fs; then
exit 0 exit 0
fi fi
else else
Supports Markdown
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