From: Ming Liu <[email protected]>

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

Signed-off-by: Ming Liu <[email protected]>
---
 meta/recipes-core/initrdscripts/initramfs-framework/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200063): 
https://lists.openembedded.org/g/openembedded-core/message/200063
Mute This Topic: https://lists.openembedded.org/mt/106405688/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to