Support disabling local Debian mirror via bootoption nolocalmirror.

From: Michael Prokop <mprokop@sipwise.com>
ksolomko/vlan
Michael Prokop 15 years ago
parent 13b08c4f62
commit f22c5425e4

@ -30,6 +30,8 @@ INTERACTIVE=false
LOCAL_MIRROR=false
DHCP=false
LOGO=true
BONDING=true
USE_LOCAL_MIRROR=true
export DISK=sda # will be configured as /dev/sda
### helper functions {{{
@ -95,8 +97,10 @@ fi
if checkBootParam ngcpnobonding ; then
BONDING=false
else
BONDING=true
fi
if checkBootParam nolocalmirror ; then
USE_LOCAL_MIRROR=false
fi
## detect environment {{{
@ -473,7 +477,7 @@ EOF
fi
# provide Debian mirror
if [ -d /srv/mirror/debs ] ; then
if [ -d /srv/mirror/debs ] && $USE_LOCAL_MIRROR ; then
echo "Debian directory /srv/mirror/debs found."
cd /srv/mirror/
if ! [ -d /srv/mirror/debian ] ; then

Loading…
Cancel
Save