mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Skip configuration if plymouth was already installed
This helps us skip the installer if something else on initial all failed and we need to run things again.
This commit is contained in:
@ -4,8 +4,8 @@
|
|||||||
echo "Installing Plymouth..."
|
echo "Installing Plymouth..."
|
||||||
yay -S --noconfirm --needed plymouth
|
yay -S --noconfirm --needed plymouth
|
||||||
|
|
||||||
|
if ! command -v plymouth &>/dev/null; then
|
||||||
# Skip if plymouth already exists for some reason
|
# Skip if plymouth already exists for some reason
|
||||||
if ! grep -q "^HOOKS=.*plymouth" /etc/mkinitcpio.conf; then
|
|
||||||
# Backup original mkinitcpio.conf just in case
|
# Backup original mkinitcpio.conf just in case
|
||||||
backup_timestamp=$(date +"%Y%m%d%H%M%S")
|
backup_timestamp=$(date +"%Y%m%d%H%M%S")
|
||||||
sudo cp /etc/mkinitcpio.conf "/etc/mkinitcpio.conf.bak.${backup_timestamp}"
|
sudo cp /etc/mkinitcpio.conf "/etc/mkinitcpio.conf.bak.${backup_timestamp}"
|
||||||
@ -18,9 +18,6 @@ if ! grep -q "^HOOKS=.*plymouth" /etc/mkinitcpio.conf; then
|
|||||||
else
|
else
|
||||||
echo "Couldn't add the Plymouth hook"
|
echo "Couldn't add the Plymouth hook"
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
echo "Plymouth already present in mkinitcpio.conf HOOKS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Regenerate initramfs
|
# Regenerate initramfs
|
||||||
sudo mkinitcpio -P
|
sudo mkinitcpio -P
|
||||||
@ -86,3 +83,4 @@ fi
|
|||||||
sudo cp -r "$HOME/.local/share/omarchy/default/plymouth" /usr/share/plymouth/themes/omarchy/
|
sudo cp -r "$HOME/.local/share/omarchy/default/plymouth" /usr/share/plymouth/themes/omarchy/
|
||||||
|
|
||||||
sudo plymouth-set-default-theme -R omarchy
|
sudo plymouth-set-default-theme -R omarchy
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user