1
0
mirror of synced 2026-02-02 14:30:57 +00:00
Files
xen-tools.xen-tools/etc/hook.d/20-setup-apt
steve c45a6eba1f 2006-03-13 10:00:47 by steve
Remove the CVS $ID:$ markers from the file to avoid merge warnings.
2006-03-13 10:00:47 +00:00

39 lines
630 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
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