defect 3287:avoid to running gettyset for rh6 and higher

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@14891 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2013-01-15 13:54:57 +00:00
parent e5f6a985ee
commit 08e280ab0d

View File

@ -1469,6 +1469,8 @@ sub generic_post { #This function is meant to leave the image in a state approxi
print $cfgfile " FLOWFLAG=\"-h\"\n";
print $cfgfile " fi\n";
print $cfgfile " if [ -x /sbin/initctl ]; then\n"; # Upstart style
# The syntax of next line is not correct, that means it does NOthing. (rh6 and higher)
# And it should NOT work for rh6 and higher, otherwise it will cauase multiple agetty for ttySx
print $cfgfile " initctl emit --no-wait fedora.serial-console-available \$COTTY \$COSPEED\n";
print $cfgfile " else\n";
print $cfgfile " echo xco:2345:respawn:/sbin/agetty \$FLOWFLAG \$COTTY \$COSPEED xterm >> /etc/inittab\n";