From ce29998bf9a54e771522503312a7cfd719f7dbcf Mon Sep 17 00:00:00 2001 From: osm0sis Date: Sun, 20 Aug 2017 01:00:53 -0300 Subject: [PATCH] AK2: silence possible expected mount stderr with AVB signing --- tools/ak2-core.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh index 06e4898..793f848 100755 --- a/tools/ak2-core.sh +++ b/tools/ak2-core.sh @@ -193,7 +193,7 @@ write_boot() { if [ -f "$bin/BootSignature_Android.jar" -a -d "$bin/avb" ]; then if [ -f "/system/system/bin/dalvikvm" ]; then umount /system; - umount /system; + umount /system 2>/dev/null; mkdir /system_root; mount -o ro -t auto /dev/block/bootdevice/by-name/system$slot /system_root; mount -o bind /system_root/system /system;