defect 2994621 is fixed;
some LSB tags are added to gettyset, git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6106 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
a1e07e2370
commit
c891a99e34
@ -1168,7 +1168,16 @@ sub generic_post { #This function is meant to leave the image in a state approxi
|
||||
copy $_,"$rootimg_dir/root/";
|
||||
}
|
||||
open($cfgfile,">","$rootimg_dir/etc/init.d/gettyset");
|
||||
print $cfgfile "#!/bin/bash\n";
|
||||
print $cfgfile "#!/bin/bash\n";
|
||||
print $cfgfile "### BEGIN INIT INFO\n";
|
||||
print $cfgfile "# Provides: gettyset\n";
|
||||
print $cfgfile "# Required-Start: sshd\n";
|
||||
print $cfgfile "# Required-Stop:\n";
|
||||
print $cfgfile "# Default-Start: 3\n";
|
||||
print $cfgfile "# Default-Stop: 0 1 2 6\n";
|
||||
print $cfgfile "# Short-Description: gettyset\n";
|
||||
print $cfgfile "# Description:\n";
|
||||
print $cfgfile "### END INIT INFO\n";
|
||||
print $cfgfile "for i in `cat /proc/cmdline`; do\n";
|
||||
print $cfgfile ' KEY=`echo $i|cut -d= -f 1`'."\n";
|
||||
print $cfgfile " if [ \"\$KEY\" == \"console\" -a \"\$i\" != \"console=tty0\" ]; then\n";
|
||||
|
Loading…
Reference in New Issue
Block a user