Add ls/agetty for basic debugging 61/140261/1
authorKunhoon Baik <knhoon.baik@samsung.com>
Mon, 24 Jul 2017 08:33:12 +0000 (17:33 +0900)
committerKunhoon Baik <knhoon.baik@samsung.com>
Mon, 24 Jul 2017 08:35:09 +0000 (17:35 +0900)
This commit is for basic debugging by serial.
This patch will be reverted on release.

Change-Id: I8831ae36b0746cb605e97dcf08d3ef633a9995a9

src/system-recovery/50-system-recovery.list.m4
src/system-recovery/recovery-init.in

index f80200b..6082ed4 100644 (file)
@@ -38,6 +38,8 @@ WITHLIBS="
 /usr/lib/initrd-recovery/minireboot
 /usr/sbin/partx
 /usr/sbin/blkid
+/usr/bin/ls
+/usr/sbin/agetty
 m4_ifdef(`RECOVERY_GUI', `/usr/lib/system-recovery/system-recovery')
 "
 
index 64b1d66..a173355 100644 (file)
@@ -82,6 +82,10 @@ do_reboot() {
 #------------------------------------------------
 echo "Starting system recovery."
 mount_partitions
+
+# For debugging - It should be deleted on Release
+/sbin/agetty -l /bin/bash -n --keep-baud 115200,38400,9600 ttyS1 linux &
+
 if [ "z@RECOVERY_GUI@" == "zGUI" ]; then
     "$SYSTEM_RECOVERY"
 else