defect 3287:avoid to running gettyset for rh6 and higher

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14892 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2013-01-15 13:57:23 +00:00
parent b3fb23c724
commit d0a97ba739

View File

@ -1552,6 +1552,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";