vitorpy's Dotfiles

Configure silent boot for clean boot experience

- Add configure-silent-boot.sh script to configure minimal boot output
- Adds kernel parameters: quiet, loglevel=3, rd.systemd.show_status=auto,
rd.udev.log_level=3, vt.global_cursor_default=0
- Creates /etc/kernel/cmdline for persistent configuration across kernel upgrades
- Configures systemd to show only errors during boot
- Updates bootstrap script to apply silent boot configuration

This provides a clean, minimal boot experience with no console noise,
matching the overall aesthetic of the system setup.

+81
+4
private_dot_config/private_arch/executable_bootstrap-fresh-install.sh
··· 51 51 echo "==> Installing ly configuration..." 52 52 ~/.config/arch/install-ly-config.sh 53 53 54 + # Configure silent boot 55 + echo "==> Configuring silent boot..." 56 + ~/.config/arch/configure-silent-boot.sh 57 + 54 58 # Enable ly display manager 55 59 echo "==> Enabling ly display manager..." 56 60 sudo systemctl enable ly.service
+77
private_dot_config/private_arch/executable_configure-silent-boot.sh
··· 1 + #!/bin/bash 2 + # Configure silent boot for Arch Linux 3 + # This script modifies systemd-boot entries for a clean, minimal boot experience 4 + 5 + set -e 6 + 7 + echo "==> Configuring silent boot..." 8 + 9 + # Silent boot kernel parameters 10 + SILENT_PARAMS="quiet loglevel=3 rd.systemd.show_status=auto rd.udev.log_level=3 vt.global_cursor_default=0" 11 + 12 + # Find all boot entries 13 + BOOT_ENTRIES=$(find /boot/loader/entries/ -name "*.conf" -type f) 14 + 15 + if [ -z "$BOOT_ENTRIES" ]; then 16 + echo "ERROR: No boot entries found in /boot/loader/entries/" 17 + exit 1 18 + fi 19 + 20 + # Process each boot entry 21 + for entry in $BOOT_ENTRIES; do 22 + echo " - Processing: $(basename "$entry")" 23 + 24 + # Check if silent boot params are already present 25 + if grep -q "quiet loglevel=3" "$entry"; then 26 + echo " Already configured for silent boot, skipping" 27 + continue 28 + fi 29 + 30 + # Backup original entry 31 + sudo cp "$entry" "$entry.bak" 32 + 33 + # Add silent boot parameters to options line 34 + sudo sed -i "s/^options /options $SILENT_PARAMS /" "$entry" 35 + 36 + echo " ✓ Added silent boot parameters" 37 + done 38 + 39 + # Create /etc/kernel/cmdline for persistent kernel parameters 40 + echo "==> Creating /etc/kernel/cmdline for persistent configuration..." 41 + 42 + # Get current root parameters from existing boot entry 43 + FIRST_ENTRY=$(echo "$BOOT_ENTRIES" | head -1) 44 + ROOT_PARAMS=$(grep "^options" "$FIRST_ENTRY" | sed 's/^options //' | sed "s/$SILENT_PARAMS //") 45 + 46 + # Create /etc/kernel/cmdline with silent boot params + root params 47 + echo "$SILENT_PARAMS $ROOT_PARAMS" | sudo tee /etc/kernel/cmdline > /dev/null 48 + 49 + echo " ✓ Created /etc/kernel/cmdline (will persist across kernel upgrades)" 50 + 51 + # Configure systemd to hide boot messages 52 + echo "==> Configuring systemd for minimal output..." 53 + 54 + # Create systemd system.conf.d directory if it doesn't exist 55 + sudo mkdir -p /etc/systemd/system.conf.d 56 + 57 + # Create silent boot configuration 58 + sudo tee /etc/systemd/system.conf.d/silent-boot.conf > /dev/null <<'EOF' 59 + [Manager] 60 + # Silent boot configuration 61 + ShowStatus=error 62 + DefaultStandardOutput=journal 63 + EOF 64 + 65 + echo " ✓ Created /etc/systemd/system.conf.d/silent-boot.conf" 66 + 67 + echo "" 68 + echo "==> Silent boot configured successfully!" 69 + echo "" 70 + echo "Changes made:" 71 + echo " - Added kernel parameters for quiet boot" 72 + echo " - Created /etc/kernel/cmdline for persistent configuration" 73 + echo " - Configured systemd to show only errors" 74 + echo " - Backup files created with .bak extension" 75 + echo "" 76 + echo "These settings will survive kernel upgrades." 77 + echo "Reboot to see the changes take effect."