[debian-lan-devel] [debian-lan] 01/03: Work around broken di-netboot-assistant only if necessary.
Andreas B. Mundt
andi at moszumanska.debian.org
Fri Dec 5 13:36:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
andi pushed a commit to branch master
in repository debian-lan.
commit 421e7a99503eda79fa30a72e9d4bf689d787a7fb
Author: Andreas B. Mundt <andi at debian.org>
Date: Fri Dec 5 13:43:56 2014 +0100
Work around broken di-netboot-assistant only if necessary.
Copy PXE boot files only if they do not exist.
---
fai/config/scripts/FAISERVER/50-di-netboot | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/fai/config/scripts/FAISERVER/50-di-netboot b/fai/config/scripts/FAISERVER/50-di-netboot
index ac10cbf..64a4796 100755
--- a/fai/config/scripts/FAISERVER/50-di-netboot
+++ b/fai/config/scripts/FAISERVER/50-di-netboot
@@ -106,11 +106,11 @@ $ROOTCMD di-netboot-assistant install $DISTRI --arch=i386
$ROOTCMD di-netboot-assistant rebuild-menu
# FIXME: Bug #759424
-$ROOTCMD cp /usr/lib/syslinux/modules/bios/ldlinux.c32 /srv/tftp/debian-installer/
-$ROOTCMD cp /usr/lib/syslinux/modules/bios/libcom32.c32 /srv/tftp/debian-installer/
-$ROOTCMD cp /usr/lib/syslinux/modules/bios/libutil.c32 /srv/tftp/debian-installer/
-$ROOTCMD cp /usr/lib/syslinux/modules/bios/chain.c32 /srv/tftp/debian-installer/
-
+for FILE in ldlinux.c32 libcom32.c32 libutil.c32 ; do
+ if [ ! -e $target/srv/tftp/debian-installer/$FILE ] ; then
+ $ROOTCMD cp /usr/lib/syslinux/modules/bios/$FILE /srv/tftp/debian-installer/
+ fi
+done
#wheezy:
#d-i preseed/late_command string mkdir -p /target/var/lib/fai/config; \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/debian-lan.git
More information about the debian-lan-devel
mailing list