aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-19 23:33:30 -0600
committerCraig Jennings <c@cjennings.net>2026-01-19 23:33:30 -0600
commitedd7c9a000f2c19e3a00e8ed10a53ed73fd31cbc (patch)
tree300722a525fbaf26cb1c1e9f8034e8fed08d44fc
parent5ed8c9567ca2075d29ac00078fa6dd5ad7580629 (diff)
downloadarchangel-edd7c9a000f2c19e3a00e8ed10a53ed73fd31cbc.tar.gz
archangel-edd7c9a000f2c19e3a00e8ed10a53ed73fd31cbc.zip
Add Avahi mDNS to installed systems for network discovery
Install avahi and nss-mdns packages, enable avahi-daemon service. Matches archsetup's implementation for consistency. After installation, systems are accessible as <hostname>.local (e.g., ratio.local, framework.local) for easier SSH access.
-rw-r--r--TODO.org27
-rwxr-xr-xcustom/install-archzfs3
2 files changed, 9 insertions, 21 deletions
diff --git a/TODO.org b/TODO.org
index f52bc38..c7d53d5 100644
--- a/TODO.org
+++ b/TODO.org
@@ -249,32 +249,17 @@ Implemented in commit 0bd172a:
- Set hostname to "archzfs"
- Live ISO now accessible as root@archzfs.local
-** TODO [#B] Add Avahi mDNS to installed systems
-Currently Avahi is only configured on the live ISO, not on the installed system.
-After install-archzfs completes and the user reboots, mDNS doesn't work.
-
-*** Implementation
-Add to install-archzfs (during package installation or system configuration):
-#+BEGIN_SRC bash
-# Install Avahi for mDNS discovery
-pacstrap /mnt avahi nss-mdns
-
-# Enable avahi-daemon
-arch-chroot /mnt systemctl enable avahi-daemon.service
+** DONE [#B] Add Avahi mDNS to installed systems
+CLOSED: [2026-01-19 Sun]
+Matches archsetup's implementation: install avahi + nss-mdns, enable avahi-daemon.
-# Configure NSS for mDNS (if not automatic)
-# Ensure /etc/nsswitch.conf has mdns_minimal in hosts line
-#+END_SRC
+Added to install-archzfs:
+- Packages: avahi, nss-mdns (in pacstrap)
+- Service: avahi-daemon enabled
-*** Result
After installation, system will be accessible as <hostname>.local on the local network.
Example: ratio.local, framework.local, etc.
-*** Notes
-- Hostname is already set during install (user provides it)
-- nss-mdns should auto-configure nsswitch.conf on install
-- Test on next install to verify it works
-
** TODO [#C] Consider adding bootable archzfs ISO to GRUB boot menu
Store the archzfs ISO on disk and add a GRUB menu entry to boot it directly - no USB drive needed for recovery/reinstall.
diff --git a/custom/install-archzfs b/custom/install-archzfs
index a6679eb..202732d 100755
--- a/custom/install-archzfs
+++ b/custom/install-archzfs
@@ -901,6 +901,8 @@ EOF
freetype2 \
efibootmgr \
networkmanager \
+ avahi \
+ nss-mdns \
openssh \
git \
vim \
@@ -1176,6 +1178,7 @@ configure_zfs_services() {
# Enable other services
arch-chroot /mnt systemctl enable NetworkManager
+ arch-chroot /mnt systemctl enable avahi-daemon
arch-chroot /mnt systemctl enable sshd
info "ZFS services configured."