From 86aa93255e96ec370666a24e3477e827a11873cf Mon Sep 17 00:00:00 2001 From: Mohammad Issa Date: Fri, 15 Jul 2022 15:21:26 +0000 Subject: [PATCH] host-device-show doesn't show firmware info When running "system host-device-show controller-0 0000:b2:00.0", all firmware info are shown as "None". Turns out some services like "sysinv-fpga-agent" and "sysinv-conf-watcher" are not initialized properly during initial boot. Test Plan: PASS: modify the rules script that is used to start systemd unit files, to become compatible with the Debian command rules. for example, specifying the name of the service with the "--name" option: "--name=sysinv-fpga-agent". Then execute: "ls /usr/lib/systemd/system/sysinv* -l" after initial boot --> Command Response: -rw-r--r-- 3 root root 81 Jan 1 1970 /usr/lib/systemd/system/sysinv-conf-watcher.path -rw-r--r-- 3 root root 219 Jan 1 1970 /usr/lib/systemd/system/sysinv-conf-watcher.service -rw-r--r-- 3 root root 389 Jan 1 1970 /usr/lib/systemd/system/sysinv-fpga-agent.service Closes-Bug: 1981824 Signed-off-by: Mohammad Issa Change-Id: I1491e9607688738fedec188c872a815b074e8dfc --- sysinv/sysinv-fpga-agent/debian/deb_folder/rules | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysinv/sysinv-fpga-agent/debian/deb_folder/rules b/sysinv/sysinv-fpga-agent/debian/deb_folder/rules index 9eab6d526b..44a02563b5 100755 --- a/sysinv/sysinv-fpga-agent/debian/deb_folder/rules +++ b/sysinv/sysinv-fpga-agent/debian/deb_folder/rules @@ -15,6 +15,6 @@ override_dh_usrlocal: # do nothing override_dh_installsystemd: - dh_installsystemd --name sysinv-fpga-agent.service - dh_installsystemd --name sysinv-conf-watcher.service - dh_installsystemd --name sysinv-conf-watcher.path + dh_installsystemd --name=sysinv-fpga-agent sysinv-fpga-agent.service + dh_installsystemd --name=sysinv-conf-watcher sysinv-conf-watcher.service + dh_installsystemd --name=sysinv-conf-watcher sysinv-conf-watcher.path