X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=initchroot.sh;h=0f6e1b9f94ea8d7411efcc70b91c1e5cc04b4199;hb=fa96b4f9163819202c6c9355a847ae3d9c4078e9;hp=b9ee4654a772fe55cb57aa39198838482371312b;hpb=244249e5bfc93aba930da7b77e0934e993810756;p=xodist diff --git a/initchroot.sh b/initchroot.sh index b9ee465..0f6e1b9 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # # Copyright © 2008 Andres Salomon # @@ -22,7 +22,7 @@ APT_SOURCES="deb http://http.us.debian.org/debian/ lenny main contrib non-free deb http://security.debian.org/ lenny/updates main contrib non-free" LOCAL_APT_MIRROR= -. functions.sh +. ./functions.sh usage() { @@ -85,6 +85,8 @@ if [ -d "${ROOT_DIR}" ]; then usage fi +start_logging $ROOT_DIR + check_for_cmds debootstrap || exit 1 if [ -z "${LOCAL_APT_MIRROR}" ]; then @@ -147,7 +149,8 @@ echo "en_US.UTF-8 UTF-8" >${ROOT_DIR}/etc/locale.gen k="http://lunge.mit.edu/~dilinger/debxo-0.2/initramfs-tools_0.92l.2_all.deb http://lunge.mit.edu/~dilinger/debxo-0.2/ofw-config_0.1_all.deb - http://lunge.mit.edu/~dilinger/debxo-0.3/linux-2.6.25.15_2.6.25.15-147_i386.deb" + http://lunge.mit.edu/~dilinger/debxo-0.4/linux-2.6.25.15_2.6.25.15-165_i386.deb + http://lunge.mit.edu/~dilinger/debxo-0.5/xserver-xorg-video-geode_2.11.0-0.3_i386.deb" mkdir -p cache for i in $k; do pkg=$(basename ${i}) @@ -158,6 +161,8 @@ for i in $k; do echo $pkgbase hold | (chroot ${ROOT_DIR} dpkg --set-selections) rm -f ${ROOT_DIR}/${pkg} done +# take the geode driver off hold +echo xserver-xorg-video-geode install | (chroot ${ROOT_DIR} dpkg --set-selections) # ensure certain modules get loaded during boot cat >>${ROOT_DIR}/etc/modules<${ROOT_DIR}/etc/X11/xorg.conf<${ROOT_DIR}/etc/apt/sources.list (chroot ${ROOT_DIR} aptitude update)