1 |
#!/bin/sh -x |
#!/bin/sh -x |
2 |
|
|
3 |
# sudo apt-get install live-helper |
# sudo apt-get install live-helper nfs-kernel-server |
4 |
|
|
5 |
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 \ |
mkdir binary/hosts |
6 |
&& sudo lh_build |
|
7 |
|
sudo lh_clean |
8 |
|
lh_config --binary-images net \ |
9 |
|
--net-root-server 172.16.10.1 --net-root-path `pwd`/binary \ |
10 |
|
--union-filesystem unionfs \ |
11 |
|
--net-cow-server 172.16.10.1 --net-cow-path `pwd`/hosts/client_mac_address \ |
12 |
|
--apt-http-proxy http://192.168.1.20:3142 --apt-ftp-proxy http://192.168.1.20:3142 \ |
13 |
|
|| exit |
14 |
|
|
15 |
|
time sudo lh_build || exit |
16 |
|
|
17 |
|
sudo chown dpavlin tftpboot/pxelinux.cfg/default |
18 |
|
cat > tftpboot/pxelinux.cfg/default << ____ |
19 |
|
include debian-live/i386/boot-screens/live.cfg |
20 |
|
default debian-live/i386/boot-screens/vesamenu.c32 |
21 |
|
prompt 0 |
22 |
|
timeout 00 |
23 |
|
____ |