hyperv-daemons: Install the sample network info scripts

Currently hv_kvp_daemon can report the interface address configuration
to the hypervisor, but not whether DHCPv4 is enabled on an interface
or what DNS servers are being used.

It tries to run external scripts to find this out, but we didn't
install any.  This was partly because the sample DHCP information
script was useless on Debian systems and no-one contributed a suitable
implementation.

Now that the DHCP information script should generally work, install
both the sample scripts.

We are still missing an hv_set_ifconfig script which will be called to
apply network configuration changes from the hypervisor.

Closes: #919350
This commit is contained in:
Ben Hutchings 2025-06-16 01:25:12 +02:00 committed by Bastian Blank
parent d3170baed5
commit 87f74d0ba5
2 changed files with 11 additions and 0 deletions

1
debian/changelog vendored
View file

@ -43,6 +43,7 @@ linux (6.17.2-1~exp1) UNRELEASED; urgency=medium
* d/salsa-ci.yml: Adjust filenames to allow source package name suffix
* binder: Add module description, fixing warning from modpost
* tools/hv: Make the sample hv_get_dhcp_info script more useful
* hyperv-daemons: Install the sample network info scripts (Closes: #919350)
[ Yunseong Kim ]
* mm/damon: Enable DAMON_STAT

View file

@ -13,4 +13,14 @@ installdir = /usr/sbin
include $(top_rulesdir)/Makefile.inc
install-local: install-hvkvpd-scripts
install-hvkvpd-scripts: installdir = /usr/libexec/hypervkvpd
install-hvkvpd-scripts: hv_get_dhcp_info.sh hv_get_dns_info.sh
@for p in $^; do \
echo " install -D -m755 '$$p' '$(DESTDIR)/$(installdir)/$$(basename $$p .sh)'"; \
install -D -m755 \
"$$p" "$(DESTDIR)/$(installdir)/$$(basename $$p .sh)"; \
done
endif