From 96081d87c8dda218b2be2efd678a2a5cb52db16e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 2 Jan 2013 11:18:20 +0100 Subject: [PATCH] Only including gtk d-i in win32-loader config if available on the target image. --- scripts/build/binary_win32-loader | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/build/binary_win32-loader b/scripts/build/binary_win32-loader index 6f831155f..8f33b57e3 100755 --- a/scripts/build/binary_win32-loader +++ b/scripts/build/binary_win32-loader @@ -88,8 +88,19 @@ cat > binary/win32-loader.ini << EOF arch=${LIVE_IMAGE_ARCHITECTURE} i386/linux=install/vmlinuz i386/initrd=install/initrd.gz +EOF + + if [ -e install/gtk ] + then + +cat >> binary/win32-loader.ini << EOF i386/gtk/linux=install/vmlinuz i386/gtk/initrd=install/gtk/initrd.gz +EOF + + fi + +cat >> binary/win32-loader.ini << EOF [grub] g2ldr=g2ldr