--- tftp/live-helper/build.sh 2009/08/02 02:54:48 112 +++ tftp/live-helper/build.sh 2009/08/04 11:50:24 132 @@ -1,4 +1,47 @@ #!/bin/sh -x -lh_config --binary-images net --net-root-path `pwd`/binary --net-root-server 172.16.10.1 --apt-http-proxy http://192.168.1.20:3142 \ -&& sudo lh_build +sudo apt-get install live-helper nfs-kernel-server + +mirror='--mirror-bootstrap http://ftp.hr.debian.org/debian'; +test `hostname` == 't61p' && mirror='--mirror-bootstrap http://192.168.1.20:3142/debian'; + +sudo lh_clean +rm -Rf config tftpboot binary +lh_config $mirror --binary-images net \ + --cache enabled \ + --bootloader syslinux \ + --distribution squeeze \ + --net-root-filesystem nfs \ + --net-root-server 172.16.10.1 --net-root-path `pwd`/binary \ +|| exit +# --net-cow-server 172.16.10.1 --net-cow-path `pwd`/hosts/client_mac_address \ +# --net-cow-filesystem cfs \ + +time sudo lh_build || exit + +sudo chown dpavlin tftpboot/pxelinux.cfg/default +cat > tftpboot/pxelinux.cfg/default << ____ +label pxelator + menu label PXElator over nfs + kernel debian-live/i386/vmlinuz-2.6.26-2-686 + append initrd=debian-live/i386/initrd.img-2.6.26-2-486 boot=live union=aufs netboot=nfs nfsroot=172.16.10.1:/home/dpavlin/llin/pxelator/tftp/live-helper/binary + + kernel debian-live/i386/vmlinuz-2.6.26-2-686 + append initrd=debian-live/i386/initrd.img-2.6.26-2-686 boot=live fetch=http://172.16.10.1:7777/live-helper/binary/live/filesystem.squashfs + + menu label PXElator over ftp + kernel debian-live/i386/vmlinuz-2.6.26-2-686 + append initrd=debian-live/i386/initrd.img-2.6.26-2-686 boot=live fetch=tftp://172.16.10.1/live-helper/binary/live/filesystem.squashfs + +include debian-live/i386/boot-screens/live.cfg +default debian-live/i386/boot-screens/vesamenu.c32 +prompt 0 +timeout 50 +____ + +sudo exportfs -v -o ro,async,subtree_check,no_root_squash 172.16.10.0/255.255.255.0:`pwd`/binary + +h=hosts/AC-DE-48-00-00-01 +mkdir -p $h +sudo exportfs -v -o rw,async,subtree_check,no_root_squash 172.16.10.0/255.255.255.0:`pwd`/$h +