diff --git a/overlay/usr/local/bin/veilor-installer b/overlay/usr/local/bin/veilor-installer index 158a94b..7c8988e 100644 --- a/overlay/usr/local/bin/veilor-installer +++ b/overlay/usr/local/bin/veilor-installer @@ -377,7 +377,7 @@ __SSHKEY_DIRECTIVE__ # Full hardening cmdline (installed system, not live): # --location=none: anaconda auto-places bootloader (UEFI grub2-efi or BIOS). -bootloader --append="lockdown=integrity slab_nomerge init_on_alloc=1 init_on_free=1 randomize_kstack_offset=on vsyscall=none plymouth.enable=0 rd.plymouth=0" +bootloader --append="lockdown=integrity slab_nomerge init_on_alloc=1 init_on_free=1 randomize_kstack_offset=on vsyscall=none plymouth.enable=0 rd.plymouth=0 logo.nologo console=tty0" # Disk: zero, LUKS2 (argon2id), btrfs subvolumes (no LVM intermediary). # Native btrfs-on-LUKS matches Fedora KDE Spin defaults; LVM+btrfs combo @@ -576,6 +576,23 @@ for unit in \ ln -sf /dev/null /etc/systemd/system/$unit done +# GRUB branding: drop fedora menu titles + theme + graphical splash. +# Pure text-mode "hackery" boot per veilor aesthetic. Logo/theme work +# revisits in v0.6 via plymouth + veilor-black theme. +sed -i \ + -e 's|^GRUB_DISTRIBUTOR=.*|GRUB_DISTRIBUTOR="veilor-os"|' \ + -e 's|^GRUB_THEME=.*|GRUB_THEME=|' \ + -e 's|^GRUB_TERMINAL_OUTPUT=.*|GRUB_TERMINAL_OUTPUT="console"|' \ + -e '/^GRUB_BACKGROUND=/d' \ + /etc/default/grub 2>/dev/null || true +# Append GRUB_TERMINAL_OUTPUT if not present +grep -q '^GRUB_TERMINAL_OUTPUT=' /etc/default/grub 2>/dev/null || \ + echo 'GRUB_TERMINAL_OUTPUT="console"' >> /etc/default/grub +# Regen grub.cfg with new branding (anaconda already wrote one; replace). +grub2-mkconfig -o /boot/grub2/grub.cfg 2>/dev/null || true +[ -f /boot/efi/EFI/fedora/grub.cfg ] && \ + grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg 2>/dev/null || true + # Symlink display-manager.service → sddm.service. (Anaconda usually # handles this when sddm is the only DM, but be explicit.) ln -sf /usr/lib/systemd/system/sddm.service /etc/systemd/system/display-manager.service