Commit e1ba3b84 authored by Anton Midyukov's avatar Anton Midyukov

grub: do not abort, if grub theme not found

Since we check for the presence of a theme before enabling it in the grub config, it is enough to issue a warning.
parent 38976d92
...@@ -64,8 +64,7 @@ if [ -n "$GRUBTHEME" ]; then ...@@ -64,8 +64,7 @@ if [ -n "$GRUBTHEME" ]; then
if [ -d "/boot/grub/themes/$GRUBTHEME" ]; then if [ -d "/boot/grub/themes/$GRUBTHEME" ]; then
cp -r /boot/grub/themes/$GRUBTHEME themes/ cp -r /boot/grub/themes/$GRUBTHEME themes/
else else
echo "Error: Directory /boot/grub/themes/$GRUBTHEME not exist" echo "Warning: Directory /boot/grub/themes/$GRUBTHEME not exist" >&2
exit 1
fi fi
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment