[yast-commit] r62820 - in /trunk/vm: VERSION package/yast2-vm.changes src/vm_finish.ycp
Author: charlesa Date: Wed Nov 10 23:18:38 2010 New Revision: 62820 URL: http://svn.opensuse.org/viewcvs/yast?rev=62820&view=rev Log: bnc#628256 - sysvinit: Id "x0" respawning too fast Modified: trunk/vm/VERSION trunk/vm/package/yast2-vm.changes trunk/vm/src/vm_finish.ycp Modified: trunk/vm/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/vm/VERSION?rev=62820&r1=62819&r2=62820&view=diff ============================================================================== --- trunk/vm/VERSION (original) +++ trunk/vm/VERSION Wed Nov 10 23:18:38 2010 @@ -1 +1 @@ -2.17.0 +2.17.1 Modified: trunk/vm/package/yast2-vm.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/vm/package/yast2-vm.changes?rev=62820&r1=62819&r2=62820&view=diff ============================================================================== --- trunk/vm/package/yast2-vm.changes (original) +++ trunk/vm/package/yast2-vm.changes Wed Nov 10 23:18:38 2010 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed Nov 10 15:20:12 MST 2010 - carnold@novell.com + +- bnc#628256 - sysvinit: Id "x0" respawning too fast + +------------------------------------------------------------------- Thu Oct 21 11:20:32 MDT 2010 - carnold@novell.com - bnc#647261 - Get lot's of error in .xsession-errors when lauching Modified: trunk/vm/src/vm_finish.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/vm/src/vm_finish.ycp?rev=62820&r1=62819&r2=62820&view=diff ============================================================================== --- trunk/vm/src/vm_finish.ycp (original) +++ trunk/vm/src/vm_finish.ycp Wed Nov 10 23:18:38 2010 @@ -38,6 +38,7 @@ import "Arch"; import "Report"; +import "FileUtils"; any ret = nil; string func = ""; @@ -96,8 +97,15 @@ y2milestone("check for xvc0 in inittab and securetty"); if ( !contains(SCR::Dir(.etc.inittab), "x0") ) { + y2milestone("Adding the x0 entry in the inittab file"); SCR::Write (.etc.inittab.x0, sformat ("12345:respawn:/sbin/agetty -L 9600 xvc0 xterm")); SCR::Write (.etc.inittab, nil); + string dev_xvc0 = "/dev/xvc0"; + if ( ! FileUtils::Exists(dev_xvc0) ) + { + y2milestone("%1 not found, commenting out the x0 entry in the inittab", dev_xvc0); + SCR::Execute(.target.bash,"/bin/sed --in-place 's/^x0:/#x0:/g' /etc/inittab"); + } } SCR::Execute(.target.bash,"/usr/bin/grep -q xvc0 /etc/securetty || echo xvc0 >> /etc/securetty"); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
charlesa@svn2.opensuse.org