[debian-lan-devel] [SCM] Debian-LAN development and packaging branch, squeeze, updated. 0.6-27-g7d8b95f

Andreas B. Mundt andi at debian.org
Sat Oct 6 06:17:54 UTC 2012


The following commit has been merged in the squeeze branch:
commit 7d8b95fc813a50f73004acaee5415254fcb3584b
Author: Andreas B. Mundt <andi at debian.org>
Date:   Sat Sep 29 13:22:36 2012 +0200

    Use debian-installer-*-netboot package for PXE installation option.

diff --git a/fai/config/files/etc/rc.local/FAISERVER b/fai/config/files/etc/rc.local/FAISERVER
index ec6972b..a933378 100755
--- a/fai/config/files/etc/rc.local/FAISERVER
+++ b/fai/config/files/etc/rc.local/FAISERVER
@@ -7,8 +7,7 @@ set -e
 ############################
 TIMEOUT=120
 URL="http.debian.net"
-URLIMGi386="http://http.us.debian.org/debian/dists/squeeze/main/installer-i386/current/images/netboot/netboot.tar.gz"
-URLIMGamd64="http://http.us.debian.org/debian/dists/squeeze/main/installer-amd64/current/images/netboot/netboot.tar.gz"
+INSTALLER="/usr/lib/debian-installer/images/*/*/text/debian-installer/"
 
 DLROOT="/opt/live"
 . /etc/fai/fai.conf
@@ -42,11 +41,9 @@ setup_nfsroot () {
 }
 
 setup_PXEinstaller () {
-    ## Add Debian PXE Installer:
-    wget --output-document=$TFTPROOT/netboot_i386.tar.gz $URLIMGi386 && \
-	tar xvf $TFTPROOT/netboot_i386.tar.gz -C $TFTPROOT ./debian-installer/
-    wget --output-document=$TFTPROOT/netboot_amd64.tar.gz $URLIMGamd64 && \
-	tar xvf $TFTPROOT/netboot_amd64.tar.gz -C $TFTPROOT ./debian-installer/
+    ## Add Debian PXE Installer.
+    ## Copy stuff, symlinks do not work (chroot environment):
+    cp -r $INSTALLER $TFTPROOT
     append2PXEmenu
 }
 
diff --git a/fai/config/package_config/FAISERVER b/fai/config/package_config/FAISERVER
index 053fcd6..e7fc07a 100644
--- a/fai/config/package_config/FAISERVER
+++ b/fai/config/package_config/FAISERVER
@@ -4,3 +4,7 @@ apt-cacher-ng
 tcpdump
 whois
 git
+
+## PXE installer:
+debian-installer-6.0-netboot-i386
+debian-installer-6.0-netboot-amd64

-- 
Debian-LAN development and packaging



More information about the debian-lan-devel mailing list