Only install/theme plymouth on full install
This commit is contained in:
parent
d7746ce0e1
commit
9129d10631
|
|
@ -120,24 +120,26 @@ cp -rfv ${SNAPPER_CONF_D} /etc/conf.d/
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -ne "
|
if [[ ${INSTALL_TYPE} == "FULL" ]]; then
|
||||||
-------------------------------------------------------------------------
|
echo -ne "
|
||||||
Enabling (and Theming) Plymouth Boot Splash
|
-------------------------------------------------------------------------
|
||||||
-------------------------------------------------------------------------
|
Enabling (and Theming) Plymouth Boot Splash
|
||||||
"
|
-------------------------------------------------------------------------
|
||||||
PLYMOUTH_THEMES_DIR="$HOME/ArchTitus/configs/usr/share/plymouth/themes"
|
"
|
||||||
PLYMOUTH_THEME="arch-glow" # can grab from config later if we allow selection
|
PLYMOUTH_THEMES_DIR="$HOME/ArchTitus/configs/usr/share/plymouth/themes"
|
||||||
mkdir -p "/usr/share/plymouth/themes"
|
PLYMOUTH_THEME="arch-glow" # can grab from config later if we allow selection
|
||||||
echo 'Installing Plymouth theme...'
|
mkdir -p "/usr/share/plymouth/themes"
|
||||||
cp -rf "${PLYMOUTH_THEMES_DIR}/${PLYMOUTH_THEME}" "/usr/share/plymouth/themes"
|
echo 'Installing Plymouth theme...'
|
||||||
if [[ "${FS}" == "luks" ]]; then
|
cp -rf "${PLYMOUTH_THEMES_DIR}/${PLYMOUTH_THEME}" "/usr/share/plymouth/themes"
|
||||||
sed -i 's/HOOKS=(base udev*/& plymouth/' /etc/mkinitcpio.conf # add plymouth after base udev
|
if [[ "${FS}" == "luks" ]]; then
|
||||||
sed -i 's/HOOKS=(base udev \(.*block\) /&plymouth-/' /etc/mkinitcpio.conf # create plymouth-encrypt after block hook
|
sed -i 's/HOOKS=(base udev*/& plymouth/' /etc/mkinitcpio.conf # add plymouth after base udev
|
||||||
else
|
sed -i 's/HOOKS=(base udev \(.*block\) /&plymouth-/' /etc/mkinitcpio.conf # create plymouth-encrypt after block hook
|
||||||
sed -i 's/HOOKS=(base udev*/& plymouth/' /etc/mkinitcpio.conf # add plymouth after base udev
|
else
|
||||||
|
sed -i 's/HOOKS=(base udev*/& plymouth/' /etc/mkinitcpio.conf # add plymouth after base udev
|
||||||
|
fi
|
||||||
|
plymouth-set-default-theme -R arch-glow # sets the theme and runs mkinitcpio
|
||||||
|
echo 'Plymouth theme installed'
|
||||||
fi
|
fi
|
||||||
plymouth-set-default-theme -R arch-glow # sets the theme and runs mkinitcpio
|
|
||||||
echo 'Plymouth theme installed'
|
|
||||||
|
|
||||||
echo -ne "
|
echo -ne "
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue