Get potential slot info
This commit is contained in:
parent
72b5985398
commit
1d3d30fa45
@ -41,7 +41,8 @@ ui_print() {
|
|||||||
mount_partitions() {
|
mount_partitions() {
|
||||||
# Check A/B slot
|
# Check A/B slot
|
||||||
SLOT=`getprop ro.boot.slot_suffix`
|
SLOT=`getprop ro.boot.slot_suffix`
|
||||||
[ -z $SLOT ] || ui_print "- A/B partition detected, current slot: $SLOT"
|
[ -z $SLOT ] && SLOT=_`getprop ro.boot.slot`
|
||||||
|
[ $SLOT = "_" ] || ui_print "- A/B partition detected, current slot: $SLOT"
|
||||||
ui_print "- Mounting /system, /vendor"
|
ui_print "- Mounting /system, /vendor"
|
||||||
is_mounted /system || [ -f /system/build.prop ] || mount -o ro /system 2>/dev/null
|
is_mounted /system || [ -f /system/build.prop ] || mount -o ro /system 2>/dev/null
|
||||||
if ! is_mounted /system && ! [ -f /system/build.prop ]; then
|
if ! is_mounted /system && ! [ -f /system/build.prop ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user