Browse code

Add secureboot config to ovf

Change-Id: Iac68de78c249ab68a8d1531b3f9293ecf15653de
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3851
Reviewed-by: Sharath George
Tested-by: Sharath George

suezzelur authored on 2017/09/23 07:55:44
Showing 4 changed files
... ...
@@ -37,10 +37,11 @@ def create_ova_image(raw_image_name, tools_path, build_scripts_path, config):
37 37
         with open(ovfinfo_path) as f:
38 38
             lines = f.readlines()
39 39
             for line in fileinput.input(ovf_path, inplace=True):
40
-                if line.strip() == '</VirtualSystem>':
40
+                if line.strip() == '</VirtualHardwareSection>':
41 41
                     for ovfinfoline in lines:
42 42
                         print ovfinfoline,
43
-                print line,
43
+                else:
44
+                    print line,
44 45
 
45 46
     if os.path.exists(mf_path):
46 47
         os.remove(mf_path)
... ...
@@ -1,3 +1,4 @@
1
+        </VirtualHardwareSection>
1 2
  	<ProductSection> 
2 3
  		<Info>Information about the installed software</Info> 
3 4
  		<Product>Photon OS</Product> 
... ...
@@ -1,3 +1,4 @@
1
+        </VirtualHardwareSection>
1 2
  	<ProductSection> 
2 3
  		<Info>Information about the installed software</Info> 
3 4
  		<Product>Photon OS</Product> 
... ...
@@ -102,8 +103,8 @@ IF YOU DO NOT AGREE TO THE TERMS OF THIS BETA LICENSE AGREEMENT, THEN DO *NOT* C
102 102
 
103 103
     <AnnotationSection>
104 104
         <Info>Description of the Product</Info>
105
-        <Annotation>This OVA provides a minimal installed profile of PhotonOS.
106
-   Default password for root user is changeme. However user will be prompted to change the password during first login.
105
+        <Annotation>This OVA provides a micro installed profile of PhotonOS.
106
+   Default password for root user is changeme.
107 107
         </Annotation>
108 108
 
109 109
     </AnnotationSection>
... ...
@@ -1,3 +1,5 @@
1
+          <vmw:ExtraConfig ovf:required="false" vmw:key="uefi.secureBoot.enabled" vmw:value="TRUE"/>
2
+        </VirtualHardwareSection>
1 3
  	<ProductSection> 
2 4
  		<Info>Information about the installed software</Info> 
3 5
  		<Product>Photon OS</Product> 
... ...
@@ -102,7 +104,7 @@ IF YOU DO NOT AGREE TO THE TERMS OF THIS BETA LICENSE AGREEMENT, THEN DO *NOT* C
102 102
 
103 103
     <AnnotationSection>
104 104
         <Info>Description of the Product</Info>
105
-        <Annotation>This OVA provides a minimal installed profile of PhotonOS.
105
+        <Annotation>This OVA provides a UEFI secure boot enabled minimal installed profile of PhotonOS.
106 106
    Default password for root user is changeme. However user will be prompted to change the password during first login.
107 107
         </Annotation>
108 108