1
0
mirror of synced 2026-02-16 12:12:51 +00:00
Files
xen-tools.xen-tools/etc/hook.d/20-setup-apt
steve 7c26f68fd8 2006-05-23 12:26:13 by steve
Updated hooks to work with rpmstrap.
2006-05-23 12:26:13 +00:00

50 lines
835 B
Bash
Executable File

#!/bin/sh
#
# This script sets up the /etc/apt/sources.list for APT.
#
# Steve
# --
# http://www.steve.org.uk/
prefix=$1
#
# If we're installing a distribution with rpmstrap then don't
# touch /etc/apt/sources.list
#
if [ "${rpmstrap}" ]; then
echo "APT not available for non-Debian distribution ${dist}"
exit;
fi
cat <<E_O_APT > ${prefix}/etc/apt/sources.list
#
# /etc/apt/sources.list
#
#
# ${dist}
#
deb ${mirror} ${dist} main contrib non-free
deb-src ${mirror} ${dist} main contrib non-free
#
# Security updates
#
deb http://security.debian.org/ stable/updates main contrib non-free
deb-src http://security.debian.org/ stable/updates main contrib non-free
E_O_APT
#
# Now that the sources have been setup make sure the system is up to date.
#
chroot ${prefix} /usr/bin/apt-get update