Only including gtk d-i in win32-loader config if available on the target image.
authorDaniel Baumann <daniel@debian.org>
Wed, 2 Jan 2013 10:19:20 +0000 (11:19 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 2 Jan 2013 10:19:20 +0000 (11:19 +0100)
scripts/build/binary_win32-loader

index 1dc8cdc..d2eac87 100755 (executable)
@@ -88,8 +88,19 @@ cat > binary/win32-loader.ini << EOF
 arch=${LB_ARCHITECTURES}
 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