Fix missing overlayfs

This commit is contained in:
Audiobuzz
2026-06-13 04:38:10 +00:00
parent 5b3ef0f74c
commit f0d61feb4d
3 changed files with 9 additions and 5 deletions
+3 -2
View File
@@ -194,8 +194,9 @@ build {
# ---- Diskless adaptations ------------------------------------------ # ---- Diskless adaptations ------------------------------------------
# Per-host machine-id is generated at boot into the overlay # Per-host machine-id is generated at boot into the overlay
"truncate -s 0 /etc/machine-id", "truncate -s 0 /etc/machine-id",
# Read-only NFS root; runtime state on tmpfs/overlay (rootovl via the # Read-only erofs/verity root; runtime state on a tmpfs overlay provided
# dracut 'overlayfs' module is pulled in by 90-diskless.conf) # by systemd.volatile=overlay (set in the cmdline by extract-artifacts.sh).
# RHEL/Rocky dracut has no 'overlayfs'/'rootovl' module.
"printf '%s\\n' '# diskless: root is provided by netroot; no local mounts' > /etc/fstab", "printf '%s\\n' '# diskless: root is provided by netroot; no local mounts' > /etc/fstab",
# No local bootloader regeneration wanted on kernel updates inside CI # No local bootloader regeneration wanted on kernel updates inside CI
"command -v grub2-mkconfig >/dev/null && echo 'GRUB updates not used on diskless hosts' || true", "command -v grub2-mkconfig >/dev/null && echo 'GRUB updates not used on diskless hosts' || true",
+5 -2
View File
@@ -5,8 +5,11 @@
# because the build VM only has virtio devices. # because the build VM only has virtio devices.
hostonly="no" hostonly="no"
# Module NAMES here omit the NN dir-prefix: the directory is 95dot1x-macsec but # Module NAMES here omit the NN dir-prefix: the directory is 95dot1x-macsec but
# the module is 'dot1x-macsec' (cf. nvmf, overlayfs below). # the module is 'dot1x-macsec' (cf. nvmf). The writable root overlay is provided
add_dracutmodules+=" dot1x-macsec network-legacy nvmf systemd-veritysetup overlayfs " # by systemd.volatile=overlay on the kernel cmdline (RHEL/Rocky dracut has no
# 'overlayfs'/'rootovl' module — that's a Debian/third-party feature); we only
# need the overlay kernel filesystem, included via 'filesystems' below.
add_dracutmodules+=" dot1x-macsec network-legacy nvmf systemd-veritysetup "
filesystems+=" erofs overlay " filesystems+=" erofs overlay "
add_drivers+=" macsec nvme-tcp nvme-fabrics dm-verity @NIC_DRIVERS@ " add_drivers+=" macsec nvme-tcp nvme-fabrics dm-verity @NIC_DRIVERS@ "
install_items+=" /etc/dot1x/radius-ca.pem /etc/dot1x/wpa_supplicant-dot1x.conf " install_items+=" /etc/dot1x/radius-ca.pem /etc/dot1x/wpa_supplicant-dot1x.conf "
+1 -1
View File
@@ -81,7 +81,7 @@ if [ "$DISABLE_DOT1X" = "true" ]; then
fi fi
printf '%s' \ printf '%s' \
"$DOT1X_FRAGMENT" \ "$DOT1X_FRAGMENT" \
"rd.neednet=1 rootovl " \ "rd.neednet=1 systemd.volatile=overlay " \
"rd.dot1x.nvindex=0x01800001 rd.dot1x.timeout=60 " \ "rd.dot1x.nvindex=0x01800001 rd.dot1x.timeout=60 " \
"rd.nvmf.discover=tcp,NVMET_TRADDR,4420 " \ "rd.nvmf.discover=tcp,NVMET_TRADDR,4420 " \
"root=/dev/mapper/root rootfstype=erofs rootflags=ro " \ "root=/dev/mapper/root rootfstype=erofs rootflags=ro " \