Skip to contentSkip to conversation

init fixes

PATCH In review Aníbal Limón 2 participants 5 messages Mar 19, 2015 – Mar 20, 2015

lore
Share & tools
lore
#0 lore raw

v4 cover init fixes

The next changes fixes issues related to [YOCTO #5336].

This v4 changes the second patch related to handle vt switch when X stop's.

The following changes since commit df0672b038e6942c97d266af9ca175a06f2b0423:

bitbake: toaster: Fix the orderkey to match the column (2015-03-16 17:44:13 +0000)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib alimon/init_fixes
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=alimon/init_fixes

Aníbal Limón (2):
sysvinit-inittab: Fix no tty in runlevel 1.
xserver-nodm-init: Change to vt1 when stop

 meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb          | 2 +-
 meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
1.8.4.5
#1 lore raw

PATCH v4 1/2 sysvinit-inittab: Fix no tty in runlevel 1.

When switch to runlevel 1 (Single user mode), tty was not re-spawn and appears to be a machine hang.

[YOCTO #5336]

---
 meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb +1 -1
index eed2104..e087f0f 100644
@@ -41,7 +41,7 @@ EOF
 
         for n in ${SYSVINIT_ENABLED_GETTYS}
         do
-            echo "$n:2345:respawn:${base_sbindir}/getty 38400 tty$n" >> ${D}${sysconfdir}/inittab
+            echo "$n:12345:respawn:${base_sbindir}/getty 38400 tty$n" >> ${D}${sysconfdir}/inittab
         done
         echo "" >> ${D}${sysconfdir}/inittab
     fi
Signature · 1 line
1.8.4.5
#2 lore raw

PATCH v4 2/2 xserver-nodm-init: Change to vt1 when stop

In reply to Aníbal Limón

When X is stopped it remains in the same vt that was launched, change to vt1 instead to avoid manual vt switch.

[YOCTO #5336]

---
 meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm +1 -0
index ef6c11c..2e3e090 100755
@@ -48,6 +48,7 @@ case "$1" in
   stop)
         echo "Stopping XServer"
         killproc xinit
+        chvt 1
   ;;
 
   restart)
Signature · 1 line
1.8.4.5
Acked-by on v4 2/2
#3 lore raw

Re: [PATCHv4 2/2] xserver-nodm-init: Change to vt1 when stop

Quoted 6 lines · Aníbal Limón

When X is stopped it remains in the same vt that was launched, change to vt1 instead to avoid manual vt switch.

[YOCTO #5336]

Now I like it :) Thanks for doing those changes :)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#4 lore raw

Re: [PATCHv4 2/2] xserver-nodm-init: Change to vt1 when stop

Quoted 9 lines · Otavio Salvador
Quoted 6 lines · Aníbal Limón

When X is stopped it remains in the same vt that was launched, change to vt1 instead to avoid manual vt switch.

[YOCTO #5336]

Now I like it :) Thanks for doing those changes :)

Thanks to you for the feedback.

alimon

Quoted 3 lines