summaryrefslogtreecommitdiff
path: root/scripts/build/binary_syslinux
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/binary_syslinux')
-rwxr-xr-xscripts/build/binary_syslinux4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux
index 2d1a84070..9b3d18ece 100755
--- a/scripts/build/binary_syslinux
+++ b/scripts/build/binary_syslinux
@@ -313,8 +313,8 @@ then
fi
rm -f "${_TARGET}/splash.svg"
-# Tweak the grub theme to reuse the syslinux background image
-if [ -e binary/boot/grub/live-theme/theme.txt ]; then
+# Tweak the grub theme to reuse the syslinux background image if grub doesn't have its own
+if [ -e binary/boot/grub/live-theme/theme.txt ] && [ ! -e binary/boot/grub/splash.png ]; then
sed -i -e 's|^desktop-image:.*|desktop-image: "/isolinux/splash.png"|' \
-e 's|^title-text:.*|title-text: ""|' \
binary/boot/grub/live-theme/theme.txt