Improve debug logging around Raid/Bootloader
Change-Id: I7d34b918a859972a2d5650494824d3333016dd11
This commit is contained in:
@@ -175,7 +175,7 @@ def _is_bootloader_loaded(dev):
|
|||||||
LOG.debug('Skipping boot sector check as the system is in UEFI '
|
LOG.debug('Skipping boot sector check as the system is in UEFI '
|
||||||
'boot mode.')
|
'boot mode.')
|
||||||
return False
|
return False
|
||||||
|
LOG.debug('Starting check for pre-intalled BIOS boot-loader.')
|
||||||
try:
|
try:
|
||||||
# Looking for things marked "bootable" in the partition table
|
# Looking for things marked "bootable" in the partition table
|
||||||
stdout, stderr = utils.execute('parted', dev, '-s', '-m',
|
stdout, stderr = utils.execute('parted', dev, '-s', '-m',
|
||||||
|
@@ -212,6 +212,7 @@ def md_restart(raid_device):
|
|||||||
:raises: CommandExecutionError in case the restart fails.
|
:raises: CommandExecutionError in case the restart fails.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
|
LOG.debug('Restarting software RAID device %s', raid_device)
|
||||||
component_devices = _get_component_devices(raid_device)
|
component_devices = _get_component_devices(raid_device)
|
||||||
utils.execute('mdadm', '--stop', raid_device)
|
utils.execute('mdadm', '--stop', raid_device)
|
||||||
utils.execute('mdadm', '--assemble', raid_device,
|
utils.execute('mdadm', '--assemble', raid_device,
|
||||||
|
Reference in New Issue
Block a user