#!/bin/sh # vim: set ts=4 sw=4 sts=4 et : . $SCRIPTSDIR/vars.sh # Set up a temporary policy-rc.d to prevent apt from starting services # on package installation cat > $INSTALLCHROOT/usr/sbin/policy-rc.d < Generate locales" echo "en_US.UTF-8 UTF-8" >> $INSTALLDIR/etc/locale.gen chroot $INSTALLDIR locale-gen chroot $INSTALLDIR update-locale LANG=en_US.UTF-8 echo "--> Updating template fstab file..." cat >> $INSTALLDIR/etc/fstab < Installing qubes packages" export CUSTOMREPO="$PWD/yum_repo_qubes/$DIST" if ! [ -e $CACHEDIR/repo-secring.gpg ]; then mkdir -p $CACHEDIR gpg --gen-key --batch < $INSTALLDIR/etc/apt/sources.list.d/qubes-builder.list <> $INSTALLDIR/etc/modules # Kill any processes that might have been started by apt before unmounting lsof $INSTALLDIR | tail -n +2 | awk '{print $2}' | xargs --no-run-if-empty kill