#!/bin/bash
# Keine Hostid aus dem Bau (Teil von zfsbootmenu-init, vor init.d/20-hostid):
# Das dracut-Modul von OpenZFS legt immer eine /etc/hostid ins Image, im
# Build-Container aus dessen Adresse, also für jedes Image dieselbe.
# ZFSBootMenu gäbe sie per spl.spl_hostid an jedes gestartete System weiter.
# Ohne sie nimmt ZFSBootMenu die Hostid aus dem Label des Boot-Pools
# (hooks/early-setup.d/40-bashclub-bootpool bzw. match_hostid) und sonst
# seinen Standard. spl_hostid auf der Kernel-Zeile gilt weiter.
[ "${ZFSBOOTMENU_INITIALIZATION}" = "yes" ] || return 0
# shellcheck disable=SC2154 # spl_hostid: /etc/zfsbootmenu.conf
[ -n "${spl_hostid}" ] || rm -f /etc/hostid
