[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>
This commit is contained in:
parent
830555f71a
commit
1320c0ee91
@ -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/*.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/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/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
|
# Rules for initcpio images
|
||||||
|
7
configs/syslinux-iso/boot-files/pxelinux.cfg/default
Normal file
7
configs/syslinux-iso/boot-files/pxelinux.cfg/default
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
PROMPT 1
|
||||||
|
DEFAULT arch
|
||||||
|
|
||||||
|
LABEL arch
|
||||||
|
KERNEL vmlinuz26
|
||||||
|
APPEND initrd=archiso.img archisolabel=XXX
|
||||||
|
IPAPPEND 1
|
@ -2,5 +2,5 @@
|
|||||||
MODULES=""
|
MODULES=""
|
||||||
BINARIES=""
|
BINARIES=""
|
||||||
FILES=""
|
FILES=""
|
||||||
HOOKS="base udev archiso pata scsi sata usb fw pcmcia filesystems usbinput"
|
HOOKS="base udev nbd archiso pata scsi sata usb fw pcmcia filesystems usbinput"
|
||||||
COMPRESSION="lzma"
|
COMPRESSION="lzma"
|
||||||
|
@ -5,6 +5,7 @@ b43-fwcutter
|
|||||||
base
|
base
|
||||||
ddrescue
|
ddrescue
|
||||||
dmraid
|
dmraid
|
||||||
|
dnsmasq
|
||||||
dnsutils
|
dnsutils
|
||||||
dosfstools
|
dosfstools
|
||||||
elinks
|
elinks
|
||||||
@ -20,6 +21,7 @@ joe
|
|||||||
lftp
|
lftp
|
||||||
lilo
|
lilo
|
||||||
memtest86+
|
memtest86+
|
||||||
|
nbd
|
||||||
ndiswrapper
|
ndiswrapper
|
||||||
ndiswrapper-utils
|
ndiswrapper-utils
|
||||||
nfs-utils
|
nfs-utils
|
||||||
|
@ -5,6 +5,7 @@ b43-fwcutter
|
|||||||
base
|
base
|
||||||
ddrescue
|
ddrescue
|
||||||
dmraid
|
dmraid
|
||||||
|
dnsmasq
|
||||||
dnsutils
|
dnsutils
|
||||||
dosfstools
|
dosfstools
|
||||||
elinks
|
elinks
|
||||||
@ -20,6 +21,7 @@ joe
|
|||||||
lftp
|
lftp
|
||||||
lilo
|
lilo
|
||||||
memtest86+
|
memtest86+
|
||||||
|
nbd
|
||||||
ndiswrapper
|
ndiswrapper
|
||||||
ndiswrapper-utils
|
ndiswrapper-utils
|
||||||
nfs-utils
|
nfs-utils
|
||||||
|
Loading…
Reference in New Issue
Block a user