More precise env detection in non-root

This commit is contained in:
topjohnwu 2020-01-01 14:19:24 +08:00
parent 3049a81c3b
commit 1b4a3d2d9f

View File

@ -1,6 +1,7 @@
mount_partitions() {
[ "`getprop ro.build.ab_update`" = "true" ] && SLOT=`getprop ro.boot.slot_suffix`
[ "`getprop ro.build.system_root_image`" = "true" ] && SYSTEM_ROOT=true || SYSTEM_ROOT=false
# Check whether non rootfs root dir exists
grep ' / ' /proc/mounts | grep -qv 'rootfs' && SYSTEM_ROOT=true || SYSTEM_ROOT=false
}
get_flags() {