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 <mohammad.issa@windriver.com>
Change-Id: I1491e9607688738fedec188c872a815b074e8dfc
This commit is contained in:
Mohammad Issa 2022-07-15 15:21:26 +00:00
parent 8b2e968aff
commit 86aa93255e

View File

@ -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