|
|
|
@ -1726,7 +1726,15 @@ class cl_install(color_print, SignalInterrupt):
|
|
|
|
|
# update system id
|
|
|
|
|
osDiskDevices = self.clVars.Get('os_disk_dev')
|
|
|
|
|
|
|
|
|
|
updateIdDict = dict(map(lambda x:(x[0],x[2]),filter(lambda x:x[1]!=x[2],
|
|
|
|
|
def eqId(a,b):
|
|
|
|
|
isHex = re.compile("^[A-Fa-f0-9]+$").match
|
|
|
|
|
if b and (not a or not (isHex(a) and isHex(b))
|
|
|
|
|
or int(a,16)!=int(b,16)):
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
|
return False
|
|
|
|
|
updateIdDict = dict(map(lambda x:(x[0],x[2]),
|
|
|
|
|
filter(lambda x:eqId(x[1],x[2]),
|
|
|
|
|
zip(self.clVars.Get('os_disk_dev'),
|
|
|
|
|
self.clVars.Get('os_disk_id'),
|
|
|
|
|
self.clVars.Get('os_install_disk_id')))))
|
|
|
|
|