Fix centos kickstart_done snippet 45/48445/1
authorHarry Huang <huangxiangyu5@huawei.com>
Tue, 14 Nov 2017 04:16:08 +0000 (12:16 +0800)
committerYifei Xue <xueyifei@huawei.com>
Wed, 6 Dec 2017 07:20:35 +0000 (07:20 +0000)
Bug:
CentOS-7-Minimal-1611-x86_64 image doesn't contain
wget package and kickstart_done snippet use wget to
call cobbler api to set netboot enable to false.
This way if host installed centos which is not set
to boot from disk will stuck in pxe loop

Solution:
Use curl instead of wget in kickstart_done

Change-Id: I0414adab72047a367b7cb15fe6a5537c76234972
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
(cherry picked from commit 08a15a8dae520e2b02748a34ff1ec034ee6806b9)

deploy/adapters/cobbler/snippets/kickstart_done

index 2a936ad..aafcd76 100644 (file)
@@ -17,7 +17,7 @@
     ## PXE JUST ONCE
     #if $pxe_just_once in [ "1", "true", "yes", "y" ]
         #if $breed == 'redhat'
-            #set nopxe = "\nwget \"http://%s/cblr/svc/op/nopxe/system/%s\" -O /var/log/nopxe" % (srv, system_name)
+            #set nopxe = "\ncurl \"http://%s/cblr/svc/op/nopxe/system/%s\" -O /var/log/nopxe" % (srv, system_name)
         #else if $breed == 'vmware' and $os_version == 'esx4'
             #set nopxe = "\ncurl \"http://%s/cblr/svc/op/nopxe/system/%s\" -o /var/log/nopxe" % (srv, system_name)
         #else if $breed == 'vmware'