From 08e280ab0db1911236ea500ef5ad52f50f3c1f2d Mon Sep 17 00:00:00 2001 From: daniceexi Date: Tue, 15 Jan 2013 13:54:57 +0000 Subject: [PATCH] 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 --- xCAT-server/share/xcat/netboot/rh/genimage | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index 6ae5909c2..82a0612df 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -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";