#!/bin/bash -e # vim: set ts=4 sw=4 sts=4 et : source "${SCRIPTSDIR}/vars.sh" source "${SCRIPTSDIR}/distribution.sh" ##### "========================================================================= debug " Installing custom packages and customizing ${DIST}" ##### "========================================================================= #### '-------------------------------------------------------------------------- info ' Adding contrib, non-free and Debian security to repository.' #### '-------------------------------------------------------------------------- updateDebianSourceList #### '---------------------------------------------------------------------- info ' Adding wheezy backports repository.' #### '---------------------------------------------------------------------- source="deb ${DEBIAN_MIRROR} wheezy-backports main" if ! grep -r -q "$source" "${INSTALLDIR}/etc/apt/sources.list"*; then touch "${INSTALLDIR}/etc/apt/sources.list" echo "$source" >> "${INSTALLDIR}/etc/apt/sources.list" fi aptUpdate ##### '========================================================================= debug ' Replace sysvinit with systemd' ##### '========================================================================= #### '---------------------------------------------------------------------- info ' Remove sysvinit' #### '---------------------------------------------------------------------- echo 'Yes, do as I say!' | aptRemove sysvinit #### '---------------------------------------------------------------------- info ' Preventing sysvinit re-installation' #### '---------------------------------------------------------------------- chroot apt-mark hold sysvinit #### '---------------------------------------------------------------------- info ' Pin sysvinit to prevent being re-installed' #### '---------------------------------------------------------------------- cat > "${INSTALLDIR}/etc/apt/preferences.d/qubes_sysvinit" <