X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=distrib%2Finstall-rh9.0;fp=distrib%2Finstall-rh9.0;h=0000000000000000000000000000000000000000;hb=ccb17d318604f151217973ef658e151113479d76;hp=7efc439f7cf3a5b1ebb4c9651a3a78b4b97588e6;hpb=8cf13bb177d92c93eb73dc8939777150536c2d00;p=util-vserver.git diff --git a/distrib/install-rh9.0 b/distrib/install-rh9.0 deleted file mode 100644 index 7efc439..0000000 --- a/distrib/install-rh9.0 +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/sh - -# Copyright (C) 2003 Enrico Scholz -# based on distrib/install-rh9.0 by Jacques Gelinas -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -# This script creates a vserver from RedHat 9.0 CD. Only -# the first CD is used and must be mounted in /mnt/cdrom. -# Specify the name of the vserver -# "install-rh9.0 test" will create /vservers/test - -: ${UTIL_VSERVER_VARS:=$(dirname $0)/util-vserver-vars} -test -e "$UTIL_VSERVER_VARS" || { - echo "Can not find util-vserver installation; aborting..." - exit 1 -} -. "$UTIL_VSERVER_VARS" - -USR_LIB_VSERVER=$PKGLIBDIR - -if [ $# -lt 1 ] ; then - echo install-rh9.0 vserver-id [ type ] - echo type minimum means, minimum package for a server - echo type large means, all packages on the first CD -elif [ -d $VROOTDIR/$1/var/lib/rpm ] ; then - echo $VROOTDIR/$1 already exist -elif [ ! -d /mnt/cdrom/RedHat/RPMS ] ; then - echo No rpms in /mnt/cdrom/RedHat/RPMS. Is the CD mounted \? -else - VROOT=$VROOTDIR/$1 - $USR_LIB_VSERVER/install-pre.sh $1 - mkdir -p $VROOT/proc - mount -t proc none $VROOT/proc - mount -t devpts none $VROOT/dev/pts - mkdir -p $VROOT/var/lib/rpm - rpm --root $VROOT --initdb - if [ "$2" = "minimum" ] ; then - echo `cat $USR_LIB_VSERVER/rh9.0-minimum | wc -l` packages to install - cd /mnt/cdrom/RedHat/RPMS - rpm --root $VROOT -Uvh `cat $USR_LIB_VSERVER/rh9.0-minimum` - else - PKGS=`ls /mnt/cdrom/RedHat/RPMS/*.noarch.rpm \ - /mnt/cdrom/RedHat/RPMS/*.i386.rpm` - for except in control-center iptables kernel-pcmcia-cs\ - nfs-utils pciutils quota rp-pppoe tcpdump \ - lokkit kudzu-devel pciutils-devel \ - redhat-config-securitylevel redhat-config-nfs - do - PKGS=`ls $PKGS | grep -v $except` - done - echo `echo $PKGS | wc -w` packages to install - rpm --root $VROOT -Uvh $PKGS --nodeps - fi - umount $VROOT/proc - umount $VROOT/dev/pts - $USR_LIB_VSERVER/install-post.sh $1 -fi - -