[yast-commit] r62833 - in /branches/SuSE-Code-11-SP1-Branch/vm: VERSION package/yast2-vm.changes src/vm_finish.ycp
Author: charlesa Date: Thu Nov 11 19:38:12 2010 New Revision: 62833 URL: http://svn.opensuse.org/viewcvs/yast?rev=62833&view=rev Log: bnc#628256 - sysvinit: Id "x0" respawning too fast Modified: branches/SuSE-Code-11-SP1-Branch/vm/VERSION branches/SuSE-Code-11-SP1-Branch/vm/package/yast2-vm.changes branches/SuSE-Code-11-SP1-Branch/vm/src/vm_finish.ycp Modified: branches/SuSE-Code-11-SP1-Branch/vm/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/vm/VERSION?rev=62833&r1=62832&r2=62833&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/vm/VERSION (original) +++ branches/SuSE-Code-11-SP1-Branch/vm/VERSION Thu Nov 11 19:38:12 2010 @@ -1 +1 @@ -2.16.9 +2.16.10 Modified: branches/SuSE-Code-11-SP1-Branch/vm/package/yast2-vm.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/vm/package/yast2-vm.changes?rev=62833&r1=62832&r2=62833&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/vm/package/yast2-vm.changes (original) +++ branches/SuSE-Code-11-SP1-Branch/vm/package/yast2-vm.changes Thu Nov 11 19:38:12 2010 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed Nov 10 15:20:12 MST 2010 - carnold@novell.com + +- bnc#628256 - sysvinit: Id "x0" respawning too fast + +------------------------------------------------------------------- Wed Apr 1 09:18:46 MDT 2009 - carnold@novell.com - bnc#488598 - chkconfig and insserv fail on init scripts that Modified: branches/SuSE-Code-11-SP1-Branch/vm/src/vm_finish.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/vm/src/vm_finish.ycp?rev=62833&r1=62832&r2=62833&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/vm/src/vm_finish.ycp (original) +++ branches/SuSE-Code-11-SP1-Branch/vm/src/vm_finish.ycp Thu Nov 11 19:38:12 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