Only including gtk d-i in win32-loader config if available on the target image.

This commit is contained in:
Daniel Baumann 2013-01-02 11:18:20 +01:00
parent d9a9925b31
commit 96081d87c8
1 changed files with 11 additions and 0 deletions

View File

@ -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