From: <jbj...@us...> - 2011-07-14 16:15:17
|
Revision: 10083 http://xcat.svn.sourceforge.net/xcat/?rev=10083&view=rev Author: jbjohnso Date: 2011-07-14 16:15:07 +0000 (Thu, 14 Jul 2011) Log Message: ----------- Continue fleshing out nbroot2 effort Modified Paths: -------------- xcat-core/trunk/xCAT-nbroot2/install xcat-core/trunk/xCAT-nbroot2/xcat-cmdline.sh Added Paths: ----------- xcat-core/trunk/xCAT-nbroot2/minixcatd.awk Modified: xcat-core/trunk/xCAT-nbroot2/install =================================================================== --- xcat-core/trunk/xCAT-nbroot2/install 2011-07-13 18:43:07 UTC (rev 10082) +++ xcat-core/trunk/xCAT-nbroot2/install 2011-07-14 16:15:07 UTC (rev 10083) @@ -4,12 +4,15 @@ dracut_install grep ip hostname awk egrep grep dirname expr dracut_install mount.nfs sshd vi reboot lspci parted libvirtd /usr/share/libvirt/cpu_map.xml mkfs mkfs.ext4 mkfs.btrfs dracut_install mkswap df brctl vconfig ifenslave ssh-keygen /usr/bin/qemu-img /usr/libexec/qemu-kvm scp clear dhclient lldpad -dracut_install lldptool +dracut_install lldptool /lib64/libnss_dns-2.12.so /lib64/libnss_dns.so.2 dracut_install poweroff inst "$moddir/xcatroot" "/sbin/xcatroot" inst "$moddir/dodiscovery" "/bin/dodiscovery" inst "$moddir/udpcat.awk" "/bin/udpcat.awk" +inst "$moddir/minixcatd.awk" "/bin/minixcatd.awk" +inst "$moddir/bmcsetup" "/bin/bmcsetup" inst "$moddir/dhclient-script" "/sbin/dhclient-script" +inst "/lib64/libnss_dns-2.12.so" inst "/root/.ssh/id_rsa.pub" "/.ssh/authorized_keys" inst "/lib/terminfo/l/linux" "/lib/terminfo/l/linux" inst_hook cmdline 10 "$moddir/xcat-cmdline.sh" Added: xcat-core/trunk/xCAT-nbroot2/minixcatd.awk =================================================================== --- xcat-core/trunk/xCAT-nbroot2/minixcatd.awk (rev 0) +++ xcat-core/trunk/xCAT-nbroot2/minixcatd.awk 2011-07-14 16:15:07 UTC (rev 10083) @@ -0,0 +1,19 @@ +#!/usr/bin/awk -f +# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html +BEGIN { + port = 3001 + listener = "/inet/tcp/" port "/0/0" + quit = "no" + while (match(quit,"no")) { + while (match(quit,"no") && (listener |& getline) > 0) { + if (match($0,"restart")) { + print "restarting bootstrap process" |& listener + quit="yes" + system("echo \"" $0 "\" > /restart") + system("killall sleep") + close(listener) + } + } + close(listener) + } +} Property changes on: xcat-core/trunk/xCAT-nbroot2/minixcatd.awk ___________________________________________________________________ Added: svn:executable + * Modified: xcat-core/trunk/xCAT-nbroot2/xcat-cmdline.sh =================================================================== --- xcat-core/trunk/xCAT-nbroot2/xcat-cmdline.sh 2011-07-13 18:43:07 UTC (rev 10082) +++ xcat-core/trunk/xCAT-nbroot2/xcat-cmdline.sh 2011-07-14 16:15:07 UTC (rev 10083) @@ -63,6 +63,7 @@ echo "tlvid00000006 :" >> /var/lib/lldpad/lldpad.conf echo "{" >> /var/lib/lldpad/lldpad.conf echo info = '"'$PUBKEY'";' >> /var/lib/lldpad/lldpad.conf + echo enableTx = true; >> /var/lib/lldpad/lldpad.conf echo '};' >> /var/lib/lldpad/lldpad.conf echo 'adminStatus = 3;' >> /var/lib/lldpad/lldpad.conf echo '};' >> /var/lib/lldpad/lldpad.conf This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |