added workstation fixes
[fai-configs.git] / scripts / FAISERVER / 20-copy-mirror
1 #! /bin/bash
2
3 # TODO: if we install from network copy the package mirror via, e.g., wget
4
5 [ -d /media/mirror ] || exit 0
6
7 echo "Copying Debian mirror from CD to local disk. This may take some time."
8 mkdir -p $target/var/www/debian
9 cp -a /media/mirror/* $target/var/www/debian
10
11 cd $target/var/www/debian/dists
12 # this link can only work when squeeze is released. For testing before the release use : ln -s testing squeeze
13 ln -s stable squeeze
14
15 fcopy -v /etc/rc2.d/S99fai-setup