1
0
mirror of synced 2026-02-25 16:00:11 +00:00
Files
xen-tools.xen-tools/etc/hook.d/20-setup-apt
steve da442e8c70 2005-12-24 12:42:44 by steve
Migrated most of the commands to setup the new host into external hooks.
2005-12-24 12:42:44 +00:00

36 lines
601 B
Bash
Executable File

#!/bin/sh
#
# This script sets up the /etc/apt/sources.list for APT.
#
prefix=$1
hostname=$2
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