Update boot theme
This commit is contained in:
+22
-7
@@ -212,6 +212,13 @@ build {
|
||||
destination = "/tmp/"
|
||||
}
|
||||
|
||||
# Custom 'fleet' Plymouth theme (scripted security-handshake splash). Staged to
|
||||
# /tmp/plymouth, installed + set default in the package step before dracut runs.
|
||||
provisioner "file" {
|
||||
source = "files/plymouth"
|
||||
destination = "/tmp/"
|
||||
}
|
||||
|
||||
# --- 2. Packages, configs, diskless adaptations --------------------------
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
@@ -228,13 +235,21 @@ build {
|
||||
# dracut warns and silently falls back to gzip (a larger initramfs).
|
||||
"dnf -y install wpa_supplicant tpm2-tools tpm2-tss nvme-cli cryptsetup dracut-network NetworkManager zstd openssl",
|
||||
|
||||
# Plymouth boot splash. plymouth-scripts provides plymouth-set-default-theme;
|
||||
# spinner is the clean modern theme. Set the default theme BEFORE the dracut
|
||||
# build below so the (-no-hostonly) initramfs bundles it; no -R here because
|
||||
# we rebuild the initramfs explicitly. Whether the splash shows at boot is
|
||||
# decided by the cmdline (boot_splash var), not by installing this.
|
||||
"dnf -y install plymouth plymouth-scripts plymouth-theme-spinner",
|
||||
"plymouth-set-default-theme spinner",
|
||||
# Plymouth boot splash. The custom scripted 'fleet' theme renders the
|
||||
# security-handshake checklist driven by the dracut hooks
|
||||
# (`plymouth update --status=...`). plymouth-plugin-label gives Image.Text
|
||||
# its font rendering; dejavu fonts back it. The script-plugin package name
|
||||
# has varied across releases, so install it best-effort and FALL BACK to the
|
||||
# stock 'spinner' theme if script.so is absent — never break the build over
|
||||
# the theme. Set the default theme BEFORE the dracut build below so the
|
||||
# (--no-hostonly) initramfs bundles the theme + its plugin + a font; no -R
|
||||
# (we rebuild the initramfs explicitly). Whether the splash shows at boot is
|
||||
# gated by the cmdline (boot_splash var), not by installing this.
|
||||
"dnf -y install plymouth plymouth-scripts plymouth-plugin-label dejavu-sans-fonts",
|
||||
"dnf -y install plymouth-plugin-script 2>/dev/null || dnf -y install plymouth-theme-script 2>/dev/null || true",
|
||||
"cp -a /tmp/plymouth/themes/fleet /usr/share/plymouth/themes/fleet",
|
||||
"if [ -e /usr/lib64/plymouth/script.so ]; then plymouth-set-default-theme fleet; echo '==> plymouth theme: fleet (scripted security splash)'; else dnf -y install plymouth-theme-spinner && plymouth-set-default-theme spinner; echo 'WARNING: plymouth script plugin (script.so) missing — using spinner; fleet security splash unavailable' >&2; fi",
|
||||
"rm -rf /tmp/plymouth",
|
||||
|
||||
# Stage etc files into place
|
||||
"install -D -m0644 /tmp/etc-stage/dot1x/radius-ca.pem /etc/dot1x/radius-ca.pem",
|
||||
|
||||
Reference in New Issue
Block a user