Browse code

cloud_image - PARTUUID in lowered case

systemd-remount-fs.service require PARTUUIS in lowered case.

Change-Id: Ie53dac9173787870778d617f3736843278586d55
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1693
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

Alexey Makhalov authored on 2016/11/16 06:46:21
Showing 1 changed files
... ...
@@ -113,7 +113,7 @@ if __name__ == '__main__':
113 113
         uuidval = (utils.runshellcommand("blkid -s UUID -o value {}".format(loop_device_path))).rstrip('\n')
114 114
         if (partuuidval == ''):
115 115
             sgdiskout = utils.runshellcommand("sgdisk -i 2 {} ".format(disk_device))
116
-            partuuidval = (re.findall(r'Partition unique GUID.*', sgdiskout))[0].split(':')[1].strip(' ')
116
+            partuuidval = (re.findall(r'Partition unique GUID.*', sgdiskout))[0].split(':')[1].strip(' ').lower()
117 117
 
118 118
         if (partuuidval == ''):
119 119
             raise RuntimeError("Cannot generate partuuid")
... ...
@@ -259,4 +259,4 @@ if __name__ == '__main__':
259 259
             raise ValueError("Unknown output format")
260 260
 
261 261
         if config['keeprawdisk'] == 'false':
262
-            os.remove(raw_image)
263 262
\ No newline at end of file
263
+            os.remove(raw_image)