Revert "Provide debug mode before recovery" 72/244772/2
authorKichan Kwon <k_c.kwon@samsung.com>
Thu, 24 Sep 2020 04:38:02 +0000 (13:38 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Fri, 25 Sep 2020 06:26:06 +0000 (15:26 +0900)
- system-data is no longer mounted

- This reverts commit 0ac7ac2e0e55af61e13452c625fca4725e0ade22.

Change-Id: I58057fcc6e95cf555c87ab667e2e1e0c1e993cb1
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
scripts/recovery-init.in

index 7f7dd9e..c0cb159 100644 (file)
@@ -88,24 +88,6 @@ mount_partitions() {
     mount_usb_partitions
 }
 
-check_debug_file() {
-    echo "check debug files"
-    DEBUG_MODE_FILE=${FAKE_ROOT}/opt/usr/.recovery_debug
-    if [ -f ${DEBUG_MODE_FILE} ]; then
-        DEBUG_MODE_FILE_OWNER=$(${LS} -l ${DEBUG_MODE_FILE} | ${CUT} -d " " -f 3)
-        if [ "${DEBUG_MODE_FILE_OWNER}" = "0" ]; then
-            echo "Enter recovery debug mode"
-            echo "If you want to continue recovery, please remove ${DEBUG_MODE_FILE}"
-            # Wait until debug mode file is removed
-            while [ -f ${DEBUG_MODE_FILE} ]; do
-                sleep 3
-            done
-        else
-            echo "Warning: somebody make non-root debug mode file... ignore it"
-        fi
-    fi
-}
-
 #------------------------------------------------
 #       umount_usb_partitions
 #------------------------------------------------
@@ -154,9 +136,7 @@ echo "Starting system recovery."
 mount_partitions
 
 # For debugging - It should be deleted on Release
-/sbin/agetty -l /bin/sh -n --keep-baud 115200,38400,9600 ttyS0 linux &
-
-check_debug_file
+/sbin/agetty -l /bin/sh -n --keep-baud 115200,38400,9600 ttyS1 linux &
 
 [ -x "${SYSTEM_RECOVERY_GUI}" ] && "${SYSTEM_RECOVERY_GUI}" &
 [ -x "${SYSTEM_RECOVERY}" ] && "${SYSTEM_RECOVERY}"