From d0a97ba739b4c5cfdfe0093813f8b84ba98fb279 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Tue, 15 Jan 2013 13:57:23 +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/trunk@14892 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 09e5ac6b6..699f189c1 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -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";