Log efibootmgr output as part of the system logs

Create a file efibootmgr with the verbose output of the efibootmgr command
when collecting the system logs. This can be used for debugging of boot order.
Change-Id: Ic957024d19bb01a45a3014dc2a5e4492d087e893
Signed-off-by: Jakub Jelinek <vilouskubajj@gmail.com>
This commit is contained in:
kubajj
2025年07月10日 06:52:05 +00:00
parent 883e3cf057
commit 46af01c82f

View File

@@ -3447,6 +3447,7 @@ class GenericHardwareManager(HardwareManager):
commands = {
'df': ['df', '-a'],
'dmesg': ['dmesg'],
'efibootmgr': ['efibootmgr', '-v'],
'iptables': ['iptables', '-L'],
'ip_addr': ['ip', 'addr'],
'lsblk': ['lsblk', '--all',

View File

@@ -6259,7 +6259,7 @@ class TestCollectSystemLogs(base.IronicAgentTest):
@mock.patch.object(hardware, '_collect_udev', autospec=True)
def test_collect_system_logs(self, mock_udev, mock_execute):
commands = set()
expected = {'df', 'dmesg', 'iptables', 'ip', 'lsblk',
expected = {'df', 'dmesg', 'efibootmgr', 'iptables', 'ip', 'lsblk',
'lshw', 'cat', 'mount', 'multipath', 'parted', 'ps'}
def fake_execute(cmd, *args, **kwargs):
Reference in New Issue
openstack/ironic-python-agent
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.