X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=getconf.py;h=ad8f9a7191bdc1654aa528c7858958b0e75cb1f9;hb=refs%2Fheads%2F2.0;hp=1f84674be0c3e50cb54aa943eecf34edaec17467;hpb=90b2e8e7cb145cb1f6b3780867617084441b6ca9;p=monitor.git diff --git a/getconf.py b/getconf.py index 1f84674..ad8f9a7 100755 --- a/getconf.py +++ b/getconf.py @@ -15,8 +15,12 @@ def getconf(hostname, force=False, media=None): f.write( api.AdmGenerateNodeConfFile(n[0]['node_id']) ) f.close() print os.system("cd bootcd; ./build.sh -f %s.txt -t iso -o /plc/data/var/www/html/bootcds/%s.iso &> /dev/null" % ( hostname, hostname)) + print "cd bootcd; ./build.sh -f %s.txt -t usb_partition -o /plc/data/var/www/html/bootcds/%s-partition.usb &> /dev/null" % ( hostname, hostname) print os.system("cd bootcd; ./build.sh -f %s.txt -t usb_partition -o /plc/data/var/www/html/bootcds/%s-partition.usb &> /dev/null" % ( hostname, hostname)) else: + #print os.system("cd bootcd; ./build.sh -f %s.txt -t iso -o /plc/data/var/www/html/bootcds/%s.iso &> /dev/null" % ( hostname, hostname)) + print "cd bootcd; ./build.sh -f %s.txt -t usb_partition -o /plc/data/var/www/html/bootcds/%s-partition.usb &> /dev/null" % ( hostname, hostname) + #print os.system("cd bootcd; ./build.sh -f %s.txt -t usb_partition -o /plc/data/var/www/html/bootcds/%s-partition.usb &> /dev/null" % ( hostname, hostname)) # assume that the images have already been generated.. pass