Skip to content

Commit

Permalink
feat: Add "systemd" to the spec "rpm -V" (#3990)
Browse files Browse the repository at this point in the history
* feat: Add "systemd" to the spec "rpm -V"

Signed-off-by: Huanhuan Li <[email protected]>

* Update the "rpm_V_packages" in insights_archive.py

Signed-off-by: Huanhuan Li <[email protected]>
(cherry picked from commit a861f2b)
  • Loading branch information
huali027 authored and xiangce committed Jan 11, 2024
1 parent b0e2d7e commit a012992
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion insights/specs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ class DefaultSpecs(Specs):
rhsm_releasever = simple_file('/var/lib/rhsm/cache/releasever.json')
rndc_status = simple_command("/usr/sbin/rndc status")
ros_config = simple_file("/var/lib/pcp/config/pmlogger/config.ros")
rpm_V_packages = simple_command("/bin/rpm -V coreutils procps procps-ng shadow-utils passwd sudo chrony findutils glibc", keep_rc=True, signum=signal.SIGTERM)
rpm_V_packages = simple_command("/bin/rpm -V coreutils procps procps-ng shadow-utils passwd sudo chrony findutils glibc systemd", keep_rc=True, signum=signal.SIGTERM)
rpm_V_package = foreach_execute(rpm_pkgs.rpm_v_pkg_list, "/bin/rpm -V %s", keep_rc=True, signum=signal.SIGTERM)
rpm_ostree_status = simple_command("/usr/bin/rpm-ostree status --json", signum=signal.SIGTERM)
rpm_pkgs = rpm_pkgs.pkgs_with_writable_dirs
Expand Down
8 changes: 7 additions & 1 deletion insights/specs/insights_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,13 @@ class InsightsArchiveSpecs(Specs):
rhsm_katello_default_ca_cert = simple_file("insights_commands/openssl_x509_-in_.etc.rhsm.ca.katello-default-ca.pem_-noout_-issuer")
rndc_status = simple_file("insights_commands/rndc_status")
rpm_ostree_status = simple_file("insights_commands/rpm-ostree_status_--json")
rpm_V_packages = first_file(["insights_commands/rpm_-V_coreutils_procps_procps-ng_shadow-utils_passwd_sudo_chrony_findutils_glibc", "insights_commands/rpm_-V_coreutils_procps_procps-ng_shadow-utils_passwd_sudo_chrony_findutils", "insights_commands/rpm_-V_coreutils_procps_procps-ng_shadow-utils_passwd_sudo_chrony", "insights_commands/rpm_-V_coreutils_procps_procps-ng_shadow-utils_passwd_sudo"])
rpm_V_packages = first_file([
"insights_commands/rpm_-V_coreutils_procps_procps-ng_shadow-utils_passwd_sudo_chrony_findutils_glibc_systemd"
"insights_commands/rpm_-V_coreutils_procps_procps-ng_shadow-utils_passwd_sudo_chrony_findutils_glibc",
"insights_commands/rpm_-V_coreutils_procps_procps-ng_shadow-utils_passwd_sudo_chrony_findutils",
"insights_commands/rpm_-V_coreutils_procps_procps-ng_shadow-utils_passwd_sudo_chrony",
"insights_commands/rpm_-V_coreutils_procps_procps-ng_shadow-utils_passwd_sudo"
])
saphostctl_getcimobject_sapinstance = simple_file("insights_commands/usr.sap.hostctrl.exe.saphostctrl_-function_GetCIMObject_-enuminstances_SAPInstance")
satellite_content_hosts_count = first_file([
"insights_commands/sudo_-iu_postgres_.usr.bin.psql_-d_foreman_-c_select_count_from_hosts",
Expand Down

0 comments on commit a012992

Please sign in to comment.