Use /dev/console instead of ttyS1 51/244851/2 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.113546 accepted/tizen/6.0/unified/hotfix/20201103.001520 accepted/tizen/unified/20200928.072841 submit/tizen/20200925.063159 submit/tizen/20200925.073321 submit/tizen_6.0/20201029.205105 submit/tizen_6.0_hotfix/20201102.192505 submit/tizen_6.0_hotfix/20201103.114805 tizen_6.0.m2_release
authorKichan Kwon <k_c.kwon@samsung.com>
Fri, 25 Sep 2020 05:20:10 +0000 (14:20 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Fri, 25 Sep 2020 06:26:20 +0000 (15:26 +0900)
- Console-connected serial port number depends on device
- With using /dev/console, we don't have to care
  which port is connected
- Reference
  - https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/serial-console.rst

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

index 280c968..d49bd80 100644 (file)
@@ -91,7 +91,7 @@ echo "Starting system recovery."
 mount_usb_partitions
 
 # For debugging - It should be deleted on Release
-/sbin/agetty -l /bin/sh -n --keep-baud 115200,38400,9600 ttyS1 linux &
+/sbin/agetty -l /bin/sh -n --keep-baud 115200,38400,9600 console linux &
 
 [ -x "${SYSTEM_RECOVERY_GUI}" ] && "${SYSTEM_RECOVERY_GUI}" &
 [ -x "${SYSTEM_RECOVERY}" ] && "${SYSTEM_RECOVERY}"