Files
config/sysinv/sysinv-fpga-agent/debian/deb_folder/rules
Mohammad Issa 86aa93255e 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
2022-07-15 19:29:00 +00:00

21 lines
562 B
Makefile
Executable File

#!/usr/bin/make -f
#export DH_VERBOSE = 1
ROOT := $(CURDIR)/debian/tmp
%:
dh $@
override_dh_install:
install -p -D -m 755 sysinv-fpga-agent ${ROOT}/etc/init.d/sysinv-fpga-agent
install -p -D -m 644 sysinv-fpga-agent.conf ${ROOT}/etc/pmon.d/sysinv-fpga-agent.conf
dh_install
override_dh_usrlocal:
# do nothing
override_dh_installsystemd:
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