From fda1820a0fd2f5c4a2bc052c85abcfcb603b94dd Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Mon, 18 Jan 2021 18:53:03 +0100 Subject: [PATCH] systest update --- systest/SysTest | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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