Improve debug logging around Raid/Bootloader
Change-Id: I7d34b918a859972a2d5650494824d3333016dd11
This commit is contained in:
parent
d73d27afbd
commit
bf0bb7a87a
@ -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',
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user