Manually set rootfs_block values for LVM
@@ -73,7 +73,11 @@ class OSEncryptionState(object):
self.rootfs_block_device = None
self.bootfs_block_device = None
- if rootfs_sdx_path == '/dev/mapper/osencrypt' or rootfs_sdx_path.startswith('/dev/dm-'):
+ if self.disk_util.is_os_disk_lvm():
+ self.rootfs_disk = '/dev/sda'
+ self.rootfs_block_device = '/dev/rootvg/rootlv'
+ self.bootfs_block_device = '/dev/sda1'
+ elif rootfs_sdx_path == '/dev/mapper/osencrypt' or rootfs_sdx_path.startswith('/dev/dm-'):
self.rootfs_block_device = '/dev/mapper/osencrypt'
bootfs_uuid = self._parse_uuid_from_fstab('/boot')
self.context.logger.log("bootfs_uuid: {0}".format(bootfs_uuid))
