diff --git a/ironic_python_agent/hardware.py b/ironic_python_agent/hardware.py index d90bad406..ba5d02e39 100644 --- a/ironic_python_agent/hardware.py +++ b/ironic_python_agent/hardware.py @@ -3491,6 +3491,7 @@ class GenericHardwareManager(HardwareManager): commands = { 'df': ['df', '-a'], 'dmesg': ['dmesg'], + 'efibootmgr': ['efibootmgr', '-v'], 'iptables': ['iptables', '-L'], 'ip_addr': ['ip', 'addr'], 'lsblk': ['lsblk', '--all', diff --git a/ironic_python_agent/tests/unit/test_hardware.py b/ironic_python_agent/tests/unit/test_hardware.py index 5d999ed40..8185ec7e2 100644 --- a/ironic_python_agent/tests/unit/test_hardware.py +++ b/ironic_python_agent/tests/unit/test_hardware.py @@ -6306,7 +6306,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):