qubes-linux-template-builder/scripts_fedora/01_install_core.sh
2015-01-30 15:35:00 +01:00

17 lines
523 B
Bash
Executable File

#!/bin/sh
if ! [ -f "${INSTALLDIR}/tmp/.prepared_base" ]; then
echo "-> Initializing RPM database..."
rpm --initdb --root=$INSTALLDIR
rpm --import --root=$INSTALLDIR $SCRIPTSDIR/keys/*
echo "-> Installing core RPM packages..."
rpm -i --root=$INSTALLDIR $SCRIPTSDIR/base_rpms/*.rpm || exit 1
touch "${INSTALLDIR}/tmp/.prepared_base"
fi
cp $SCRIPTSDIR/resolv.conf $INSTALLDIR/etc
cp $SCRIPTSDIR/network $INSTALLDIR/etc/sysconfig
cp -a /dev/null /dev/zero /dev/random /dev/urandom $INSTALLDIR/dev/