1 |
#!/bin/sh -x |
#!/bin/sh -x |
2 |
|
|
3 |
# sudo apt-get install live-helper nfs-kernel-server |
sudo apt-get install live-helper nfs-kernel-server |
4 |
|
|
5 |
mkdir binary/hosts |
mirror='--mirror-bootstrap http://192.168.1.20:3142/debian'; |
6 |
|
mirror='--mirror-bootstrap http://ftp.hr.debian.org/debian'; |
7 |
|
|
8 |
sudo lh_clean |
sudo lh_clean |
9 |
lh_config --binary-images net \ |
rm -Rf config tftpboot binary |
10 |
|
lh_config $mirror --binary-images net \ |
11 |
|
--cache enabled \ |
12 |
|
--bootloader syslinux \ |
13 |
|
--net-root-filesystem nfs \ |
14 |
--net-root-server 172.16.10.1 --net-root-path `pwd`/binary \ |
--net-root-server 172.16.10.1 --net-root-path `pwd`/binary \ |
|
--union-filesystem unionfs \ |
|
15 |
--net-cow-server 172.16.10.1 --net-cow-path `pwd`/hosts/client_mac_address \ |
--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 \ |
|
16 |
|| exit |
|| exit |
17 |
|
# --distribution squeeze \ |
18 |
|
# --net-cow-filesystem cfs \ |
19 |
|
|
20 |
time sudo lh_build || exit |
time sudo lh_build || exit |
21 |
|
|
24 |
include debian-live/i386/boot-screens/live.cfg |
include debian-live/i386/boot-screens/live.cfg |
25 |
default debian-live/i386/boot-screens/vesamenu.c32 |
default debian-live/i386/boot-screens/vesamenu.c32 |
26 |
prompt 0 |
prompt 0 |
27 |
timeout 00 |
timeout 50 |
28 |
____ |
____ |
29 |
|
|
30 |
|
sudo exportfs -v -o ro,async,subtree_check,no_root_squash 172.16.10.0/255.255.255.0:`pwd`/binary |
31 |
|
|
32 |
|
h=hosts/AC-DE-48-00-00-01 |
33 |
|
mkdir -p $h |
34 |
|
sudo exportfs -v -o rw,async,subtree_check,no_root_squash 172.16.10.0/255.255.255.0:`pwd`/$h |
35 |
|
|