2015-02-10 15:18:02 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
# vim: set ts=4 sw=4 sts=4 et :
|
2014-10-23 05:44:21 +00:00
|
|
|
|
2015-02-10 15:18:02 +00:00
|
|
|
source ./functions.sh
|
|
|
|
|
|
|
|
# ==============================================================================
|
2014-10-14 16:02:12 +00:00
|
|
|
# Global variables and functions
|
2015-02-10 15:18:02 +00:00
|
|
|
# ==============================================================================
|
2014-10-16 16:03:05 +00:00
|
|
|
|
2015-02-10 15:18:02 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Temp directory to place installation files and progress markers
|
|
|
|
# (Do not use /tmp since if built in a real VM, /tmp will be empty on a reboot)
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
TMPDIR="/var/lib/qubes-whonix/install"
|
2014-10-16 16:03:05 +00:00
|
|
|
|
2015-02-10 15:18:02 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
2014-04-24 13:42:18 +00:00
|
|
|
# The codename of the debian version to install.
|
|
|
|
# jessie = testing, wheezy = stable
|
2015-02-10 15:18:02 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
2014-10-28 08:09:55 +00:00
|
|
|
DEBIANVERSION=${DIST}
|
2014-04-24 13:42:18 +00:00
|
|
|
|
2015-02-10 15:18:02 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Location to grab Debian packages
|
|
|
|
# ------------------------------------------------------------------------------
|
2014-11-10 15:46:24 +00:00
|
|
|
DEBIAN_MIRROR=http://ftp.us.debian.org/debian
|
2014-10-14 16:02:12 +00:00
|
|
|
|
2015-02-10 15:18:02 +00:00
|
|
|
# TODO: Not yet implemented
|
|
|
|
DEBIAN_MIRRORS=('http://ftp.us.debian.org/debian',
|
|
|
|
'http://http.debian.net/debian,
|
2015-02-12 18:22:17 +00:00
|
|
|
'http://ftp.ca.debian.org/debian,
|
|
|
|
)
|
2015-02-10 15:18:02 +00:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# apt-get configuration options
|
|
|
|
# ------------------------------------------------------------------------------
|
2015-02-12 18:22:17 +00:00
|
|
|
APT_GET_OPTIONS="-o Dpkg::Options::="--force-confnew" --force-yes --yes"
|