added exports and few more explicit options, but it still oops kernel for me
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 3 Aug 2009 16:28:02 +0000 (16:28 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 3 Aug 2009 16:28:02 +0000 (16:28 +0000)
tftp/live-helper/build.sh

index 27c7027..35cb992 100755 (executable)
@@ -1,16 +1,21 @@
 #!/bin/sh -x
 
-sudo apt-get install live-helper nfs-kernel-server
+sudo apt-get install live-helper nfs-kernel-server
 
-mkdir binary/hosts
+mirror='--mirror-bootstrap http://192.168.1.20:3142/debian';
+mirror='--mirror-bootstrap http://ftp.hr.debian.org/debian';
 
 sudo lh_clean
-lh_config --binary-images net \
+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 \
-       --union-filesystem unionfs \
        --net-cow-server  172.16.10.1 --net-cow-path  `pwd`/hosts/client_mac_address \
-       --apt-http-proxy http://192.168.1.20:3142 --apt-ftp-proxy http://192.168.1.20:3142 \
 || exit
+#      --distribution squeeze \
+#      --net-cow-filesystem cfs \
 
 time sudo lh_build || exit
 
@@ -19,5 +24,12 @@ cat > tftpboot/pxelinux.cfg/default << ____
 include debian-live/i386/boot-screens/live.cfg
 default debian-live/i386/boot-screens/vesamenu.c32
 prompt 0
-timeout 00
+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
+