Signed-off-by: Gui Chen <gui.chen@intel.com>
break
s += "%(device)s %(mountpoint)s %(fstype)s %(fsopts)s 0 0\n" % {
- 'device': "/dev/%s%-d" % (p['disk'], p['num']),
+ 'device': "UUID=%s" % p['uuid'],
'mountpoint': p['mountpoint'],
'fstype': p['fstype'],
'fsopts': "defaults,noatime" if not p['fsopts'] else p['fsopts']}
self.__create_subvolumes(p, pdisk)
self.__mount_subvolumes(p, pdisk)
p['mount'] = pdisk
+ p['uuid'] = pdisk.uuid
def resparse(self, size = None):
# Can't re-sparse a disk image - too hard