diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:14 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:26 +0100 |
commit | 0d5ff4ca7596790f853cf637e0fe225cad810a76 (patch) | |
tree | 360ca9a49f3d82d589a4b49c98e5210dfcb3b74e /functions/defaults.sh | |
parent | cd5110f6b8eb77519d704972276cfd5be6bff055 (diff) | |
download | vyos-live-build-0d5ff4ca7596790f853cf637e0fe225cad810a76.tar.gz vyos-live-build-0d5ff4ca7596790f853cf637e0fe225cad810a76.zip |
Adding live-helper 1.0~a18-1.
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-x | functions/defaults.sh | 92 |
1 files changed, 86 insertions, 6 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh index 1dacb9262..a5b9e73cc 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -131,6 +131,16 @@ Set_defaults () LH_DEBCONF_NOWARNINGS="${LH_DEBCONF_NOWARNINGS:-yes}" LH_DEBCONF_PRIORITY="${LH_DEBCONF_PRIORITY:-critical}" + case "${LH_DEBCONF_NOWARNINGS}" in + enabled) + LH_DEBCONF_NOWARNINGS="yes" + ;; + + disabled) + LH_DEBCONF_NOWARNINGS="no" + ;; + esac + # Setting genisoimage if [ -z "${LH_GENISOIMAGE}" ] then @@ -248,11 +258,32 @@ Set_defaults () then case "${LH_MODE}" in debian) - LIVE_MIRROR_BOOTSTRAP="http://ftp.debian.org/debian/" + case "${LIVE_ARCHITECTURE}" in + amd64|i386) + LIVE_MIRROR_BOOTSTRAP="http://ftp.debian.org/debian/" + ;; + + *) + LIVE_MIRROR_BOOTSTRAP="http://ftp.de.debian.org/debian/" + ;; + esac ;; ubuntu) - LIVE_MIRROR_BOOTSTRAP="http://archive.ubuntu.com/ubuntu/" + case "${LIVE_ARCHITECTURE}" in + amd64|i386|powerpc|sparc) + LIVE_MIRROR_BOOTSTRAP="http://archive.ubuntu.com/ubuntu/" + ;; + + hppa|ia64) + LIVE_MIRROR_BOOTSTRAP="http://ports.ubuntu.com/" + ;; + + *) + Echo_error "There is no port of Ubuntu available for your architecture." + exit 1 + ;; + esac ;; esac fi @@ -266,7 +297,19 @@ Set_defaults () ;; ubuntu) - LIVE_MIRROR_BOOTSTRAP_SECURITY="http://security.ubuntu.org/ubuntu/" + case "${LIVE_ARCHITECTURE}" in + amd64|i386|powerpc|sparc) + LIVE_MIRROR_BOOTSTRAP_SECURITY="http://archive.ubuntu.com/ubuntu/" + ;; + + hppa|ia64) + LIVE_MIRROR_BOOTSTRAP_SECURITY="http://ports.ubuntu.com/" + ;; + + *) + LIVE_MIRROR_BOOTSTRAP_SECURITY="none" + ;; + esac ;; esac fi @@ -276,11 +319,32 @@ Set_defaults () then case "${LH_MODE}" in debian) - LIVE_MIRROR_BINARY="http://ftp.debian.org/debian/" + case "${LIVE_ARCHITECTURE}" in + amd64|i386) + LIVE_MIRROR_BINARY="http://ftp.debian.org/debian/" + ;; + + *) + LIVE_MIRROR_BINARY="http://ftp.de.debian.org/debian/" + ;; + esac ;; ubuntu) - LIVE_MIRROR_BINARY="http://archive.ubuntu.com/ubuntu/" + case "${LIVE_ARCHITECTURE}" in + amd64|i386|powerpc|sparc) + LIVE_MIRROR_BINARY="http://archive.ubuntu.com/ubuntu/" + ;; + + hppa|ia64) + LIVE_MIRROR_BINARY="http://ports.ubuntu.com/" + ;; + + *) + Echo_error "There is no port of Ubuntu available for your architecture." + exit 1 + ;; + esac ;; esac fi @@ -294,7 +358,15 @@ Set_defaults () ;; ubuntu) - LIVE_MIRROR_BINARY_SECURITY="http://security.ubuntu.com/ubuntu/" + case "${LIVE_ARCHITECTURE}" in + amd64|i386|powerpc|sparc) + LIVE_MIRROR_BINARY_SECURITY="http://security.ubuntu.com/ubuntu/" + ;; + + *) + LIVE_MIRROR_BINARY_SECURITY="none" + ;; + esac ;; esac fi @@ -474,6 +546,11 @@ Set_defaults () # LIVE_TASKS # Setting security updates option + if [ "${LIVE_MIRROR_BOOTSTRAP_SECURITY}" = "none" ] || [ "${LIVE_MIRROR_BINARY_SECURITY}" = "none" ] + then + LIVE_SECURITY="disabled" + fi + LIVE_SECURITY="${LIVE_SECURITY:-enabled}" # Setting symlink convertion option @@ -567,6 +644,9 @@ Set_defaults () # Setting memtest option LIVE_MEMTEST="${LIVE_MEMTEST:-memtest86+}" + # Setting netboot filesystem + LIVE_NET_FILESYSTEM="${LIVE_NET_FILESYSTEM:-nfs}" + # Setting netboot server path if [ -z "${LIVE_NET_PATH}" ] then |