diff --git a/systest/SysTest b/systest/SysTest index 5ee78660..ba694e56 100644 --- a/systest/SysTest +++ b/systest/SysTest @@ -86,7 +86,6 @@ mount_apex () { } # taken from Magisk, with modifications for NanoDroid - toupper() { echo "$@" | tr '[:lower:]' '[:upper:]' } @@ -149,6 +148,11 @@ mount_partitions () { mount -o bind /dev/urandom /dev/random + if is_mounted /system_root; then + umount /system 2&>/dev/null + umount /system_root 2&>/dev/null + fi + mkdir -p /system /system_root mount -o rw ${SYSTEM_BLOCK} /system