From c67c31fc039d76822e471a9e2c80b55b4b322b13 Mon Sep 17 00:00:00 2001 From: cd-builder user Date: Fri, 20 Aug 2010 15:52:56 +0000 Subject: [PATCH] Tweak definitions for daily image locations so that the push_di_to_cdbuild script can find them --- tools/boot/squeeze/boot-kfreebsd | 16 ++++++++++------ tools/boot/squeeze/boot-x86 | 7 +++++-- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/tools/boot/squeeze/boot-kfreebsd b/tools/boot/squeeze/boot-kfreebsd index 6a402f24..2128ddc9 100644 --- a/tools/boot/squeeze/boot-kfreebsd +++ b/tools/boot/squeeze/boot-kfreebsd @@ -16,12 +16,16 @@ N=$1 CDDIR=$2 BOOTDIR= if [ "$DI_WWW_HOME" = "default" ];then - DI_WWW_HOME="http://d-i.debian.org/daily-images/$ARCH/daily" - if [ -n "$DI_DIR" ];then - DI_DIR="$DI_DIR/${DI_WWW_HOME#*http://}" - DI_WWW_HOME="" - echo "Using images from $DI_DIR" - fi + if [ "$ARCH" = kfreebsd-i386 ]; then + DI_WWW_HOME="http://d-i.debian.org/daily-images/kfreebsd-i386/daily" + else + DI_WWW_HOME="http://d-i.debian.org/daily-images/kfreebsd-amd64/daily" + fi + if [ -n "$DI_DIR" ];then + DI_DIR="$DI_DIR/${DI_WWW_HOME#*http://}" + DI_WWW_HOME="" + echo "Using images from $DI_DIR" + fi fi if [ ! "$DI_DIST" ]; then DI_DIST="$DI_CODENAME" diff --git a/tools/boot/squeeze/boot-x86 b/tools/boot/squeeze/boot-x86 index eed7fcd4..3773de8d 100644 --- a/tools/boot/squeeze/boot-x86 +++ b/tools/boot/squeeze/boot-x86 @@ -235,8 +235,11 @@ if [ "$THISTYPE" = "isolinux" ]; then # Not everything in the tarball is isolinux stuff if [ -e boot$N/isolinux/win32-loader.ini ] ; then - mv boot$N/isolinux/g2ldr* boot$N/isolinux/setup.exe \ - boot$N/isolinux/win32-loader.ini boot$N/ + for file in boot$N/isolinux/g2ldr* boot$N/isolinux/setup.exe boot$N/isolinux/win32-loader.ini; do + if [ -e $file ] ; then + mv -v $file boot$N/ + fi + done fi if [ -e boot$N/isolinux/f3.txt.withgtk ]; then