diff options
author | Neil Williams <codehelp@debian.org> | 2015-09-02 23:47:19 +0100 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2015-09-02 23:47:19 +0100 |
commit | 9f427b60af348bb7e9f5789275fd03529eb8a0e0 (patch) | |
tree | a45cb3e91058000052fdca85fe4309d0f268b97a /common/customise.lib | |
parent | 5c54e70b6d13241bc096880fd39f346f95561a54 (diff) | |
download | vmdebootstrap-9f427b60af348bb7e9f5789275fd03529eb8a0e0.tar.gz |
Port the task-based scripts from tests with debian-cd
Diffstat (limited to 'common/customise.lib')
-rw-r--r-- | common/customise.lib | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/common/customise.lib b/common/customise.lib index d36d78a..a62c64a 100644 --- a/common/customise.lib +++ b/common/customise.lib @@ -13,6 +13,22 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +BASE_OPTS=" + --owner ${WHO} --verbose \ + --sudo \ + --lock-root-password \ + --enable-dhcp \ + --configure-apt \ + --log debian-cd-${SUITE}-${ARCH}.log --log-level debug \ +" + +TASK_PACKAGES="task-laptop task-english" + +# packages which are not (yet) part of a task +EXTRA_PACKAGES="dkms locales whois telnet aptitude lsof host \ + bash-completion firmware-linux-free dnsutils time rsync reportbug w3m \ + ethtool ftp host lsof debian-faq debian-installer-launcher doc-debian \ +" cleanup() { umount ${rootdir}/proc umount ${rootdir}/sys @@ -38,10 +54,11 @@ EOF chmod a+x ${rootdir}/usr/sbin/policy-rc.d } +# FIXME: pass the replacement mirror prepare_apt_source() { # handle the apt source mv ${rootdir}/etc/apt/sources.list.d/base.list ${rootdir}/etc/apt/ - echo "deb http://cdbuilder.debian.org/debian/ jessie main contrib non-free" > ${rootdir}/etc/apt/sources.list + echo "deb http://mirror/debian/ ${SUITE} main contrib non-free" > ${rootdir}/etc/apt/sources.list chroot ${rootdir} apt update } @@ -54,3 +71,7 @@ replace_apt_source() { rm ${rootdir}/etc/apt/sources.list mv ${rootdir}/etc/apt/base.list ${rootdir}/etc/apt/sources.list.d/ } + +blacklist_qemu_bochs() { + echo "blacklist bochs-drm" > ${rootdir}/etc/modprobe.d/qemu-blacklist.conf +} |