diff mbox series

initramfs-framework:init: fix a error message

Message ID 20240531110605.243346-1-liu.ming50@gmail.com
State New
Headers show
Series initramfs-framework:init: fix a error message | expand

Commit Message

Ming Liu May 31, 2024, 11:06 a.m. UTC
From: Ming Liu <liu.ming50@gmail.com>

Fix a following error message when entering init fatal console:
```
can't access tty: job control turned off
```

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
---
 meta/recipes-core/initrdscripts/initramfs-framework/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init
index e3d8caa0e1..41e2d28b9d 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/init
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/init
@@ -62,7 +62,7 @@  fatal() {
 	if [ -n "$bootparam_init_fatal_reboot" ]; then
 		reboot -f
 	elif [ -n "$bootparam_init_fatal_sh" ]; then
-		sh
+		sh +m
 	else
 		while [ "true" ]; do
 			sleep 3600