--- tftp/live-helper/build.sh 2009/08/02 02:56:24 113 +++ tftp/live-helper/build.sh 2009/08/03 16:28:02 127 @@ -1,6 +1,35 @@ #!/bin/sh -x -# sudo apt-get install live-helper +sudo apt-get install live-helper nfs-kernel-server + +mirror='--mirror-bootstrap http://192.168.1.20:3142/debian'; +mirror='--mirror-bootstrap http://ftp.hr.debian.org/debian'; + +sudo lh_clean +rm -Rf config tftpboot binary +lh_config $mirror --binary-images net \ + --cache enabled \ + --bootloader syslinux \ + --net-root-filesystem nfs \ + --net-root-server 172.16.10.1 --net-root-path `pwd`/binary \ + --net-cow-server 172.16.10.1 --net-cow-path `pwd`/hosts/client_mac_address \ +|| exit +# --distribution squeeze \ +# --net-cow-filesystem cfs \ + +time sudo lh_build || exit + +sudo chown dpavlin tftpboot/pxelinux.cfg/default +cat > tftpboot/pxelinux.cfg/default << ____ +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 -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