summaryrefslogtreecommitdiff
path: root/configs/syslinux-iso/Makefile
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-03-17 11:01:31 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-03-17 11:14:44 -0300
commit1320c0ee9152b91e60972551b98942ea2b24d34f (patch)
treeb2579b2e4763c631a54e5b26b2e19e9f439d3f63 /configs/syslinux-iso/Makefile
parent830555f71a6ea4fcda93657e7a2220d753f26757 (diff)
downloadarchiso32-1320c0ee9152b91e60972551b98942ea2b24d34f.tar.xz
[syslinux-iso] Add PXE support via NBD.
nbd (network block device utilities) package is required. This package is in AUR at this moment. http://aur.archlinux.org/packages.php?ID=9691 Also added dnsmasq pkg, so the live-medium, appart of support booting from PXE also add the capability to acts as server for PXE & NBD. This is a dirty script to ilustrate how to launch server: ---- Cut here ---- IP=$1 ISO=$2 ifconfig eth0 ${IP} dnsmasq \ --enable-tftp \ --tftp-root=/bootmnt/boot \ --dhcp-boot=/pxelinux.0,"${IP}" \ --dhcp-range=${IP%.*}.2,${IP%.*}.254,86400 nbd-server 9040 ${ISO} -r ---- Cut here ---- Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'configs/syslinux-iso/Makefile')
-rw-r--r--configs/syslinux-iso/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/syslinux-iso/Makefile b/configs/syslinux-iso/Makefile
index 04c2de1..3258b81 100644
--- a/configs/syslinux-iso/Makefile
+++ b/configs/syslinux-iso/Makefile
@@ -43,6 +43,8 @@ bootfiles: root-image
cp $(WORKDIR)/root-image/usr/lib/syslinux/*.c32 $(WORKDIR)/iso/boot/isolinux/
cp $(WORKDIR)/root-image/usr/lib/syslinux/isolinux.bin $(WORKDIR)/iso/boot/isolinux/
cp $(WORKDIR)/root-image/usr/lib/syslinux/memdisk $(WORKDIR)/iso/boot/isolinux/
+ cp $(WORKDIR)/root-image/usr/lib/syslinux/pxelinux.0 $(WORKDIR)/iso/boot/
+ sed -i "s|XXX|$(LABEL)|g" $(WORKDIR)/iso/boot/pxelinux.cfg/default
# Rules for initcpio images