Improve debug logging around Raid/Bootloader

Change-Id: I7d34b918a859972a2d5650494824d3333016dd11
This commit is contained in:
Julia Kreger 2020-03-28 08:55:32 -07:00
parent d73d27afbd
commit bf0bb7a87a
2 changed files with 2 additions and 1 deletions

View File

@ -175,7 +175,7 @@ def _is_bootloader_loaded(dev):
LOG.debug('Skipping boot sector check as the system is in UEFI '
'boot mode.')
return False
LOG.debug('Starting check for pre-intalled BIOS boot-loader.')
try:
# Looking for things marked "bootable" in the partition table
stdout, stderr = utils.execute('parted', dev, '-s', '-m',

View File

@ -212,6 +212,7 @@ def md_restart(raid_device):
:raises: CommandExecutionError in case the restart fails.
"""
try:
LOG.debug('Restarting software RAID device %s', raid_device)
component_devices = _get_component_devices(raid_device)
utils.execute('mdadm', '--stop', raid_device)
utils.execute('mdadm', '--assemble', raid_device,