Add blob_boot.sh to update boot splash image with GRUB/mkinitcpio compatibility

This commit is contained in:
2026-04-20 14:08:19 -04:00
parent 33081f8fa3
commit 4143384758
2 changed files with 28 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
# Default to the branding image if no argument is provided
if [ -z "$1" ]; then
IMAGE_PATH="$HOME/Documents/dotfiles/branding/boot_flash.png"
else
IMAGE_PATH=$(realpath "$1")
fi
if [ ! -f "$IMAGE_PATH" ]; then
echo "Error: File '$IMAGE_PATH' does not exist."
exit 1
fi
echo "Applying boot splash image: $IMAGE_PATH"
echo "This requires sudo privileges."
# Copy the image to the Plymouth theme directory
sudo cp "$IMAGE_PATH" /usr/share/plymouth/themes/omarchy/logo.png
# Ensure the correct permissions
sudo chmod 644 /usr/share/plymouth/themes/omarchy/logo.png
echo "Rebuilding initramfs..."
# Exclusively use mkinitcpio for GRUB compatibility
sudo mkinitcpio -P
echo "Boot splash successfully updated!"