Debian ISO: advertise wrolpi.local with Avahi (#839)

INSTALL.md and the onboarding wizard send people to wrolpi.local, but the
Debian image had no mDNS responder, so the name never resolved on a Debian
install or Live USB.  Raspberry Pi OS ships Avahi; the ISO now does too.

libnss-mdns lets the WROLPi's own desktop resolve .local names (apt
recommends are off in the build, so it is listed explicitly).  check-iso.sh
fails the build if either package is missing.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
lrnselfreliance 2026-10-19 19:39:28 -06:00 • committed by Roland
parent c6bdd759e4
commit 22be73a1c9
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
3 changed files with 14 additions and 2 deletions

View file

@ -80,6 +80,16 @@ if extract isolinux/isolinux.cfg && ! grep -qE '^timeout [1-9]' "${TMP}/isolinux
FAILED=1
fi
# INSTALL.md and the onboarding wizard send people to wrolpi.local, which only
# resolves if the WROLPi advertises its hostname over mDNS (avahi-daemon), and
# only resolves on the WROLPi's own desktop with libnss-mdns.
for pkg in avahi-daemon libnss-mdns; do
if ! grep -qE "^${pkg}(:[a-z0-9]+)?[[:space:]]" "${TMP}/filesystem.packages"; then
echo "ERROR: ${pkg} is not installed; wrolpi.local would not resolve." >&2
FAILED=1
fi
done
# The installer should default the hostname to wrolpi (wrolpi.local), via the
# preseed live-build copies into each installer initrd.
for initrd in install/initrd.gz install/gtk/initrd.gz; do

View file

@ -2,8 +2,8 @@
# initrd, where d-i loads /preseed.cfg automatically.
#
# Default the hostname to wrolpi (Debian's default is "debian"), as on the live
# session and the Pi: it names the TLS certificate, the SMB/NetBIOS share, and
# the DHCP hostname a router may publish. "seen false" keeps the question on
# session and the Pi: Avahi advertises it as wrolpi.local, and it names the TLS
# certificate, the SMB/NetBIOS share, and the DHCP hostname a router may publish. "seen false" keeps the question on
# screen, so it can still be changed; a hostname from DHCP takes precedence.
d-i netcfg/get_hostname string wrolpi
d-i netcfg/get_hostname seen false

View file

@ -2,6 +2,7 @@ alsa-utils
apt-transport-https
aria2
autoconf
avahi-daemon
bind9-dnsutils
build-essential
bzip2
@ -50,6 +51,7 @@ libfreetype6-dev
libgeos++-dev
libgeos-dev
libicu-dev
libnss-mdns
libproj-dev
libreoffice
libsqlite3-dev