]>
git.ipfire.org Git - people/ms/strongswan.git/blob - testing/scripts/build-umlhostfs
2 # create UML host file systems
4 # Copyright (C) 2004 Eric Marchionni, Patrik Rayo
5 # Zuercher Hochschule Winterthur
7 # This program is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by the
9 # Free Software Foundation; either version 2 of the License, or (at your
10 # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 # RCSID $Id: build-umlhostfs,v 1.3 2006/03/30 21:20:27 as Exp $
21 source $DIR/function.sh
23 [ -f $DIR/..
/testing.conf
] || die
"!! Configuration file 'testing.conf' not found."
25 source $DIR/..
/testing.conf
29 [ -f gentoo-fs
] || die
"!! Root file system 'gentoo-fs' not found."
33 cecho-n
" * Directory '$BUILDDIR' does not exist..creating.."
38 LOGFILE
=${BUILDDIR}/testing.log
42 cecho-n
" * Logfile '$LOGFILE' does not exist..creating.."
54 cecho-n
" * Creating root filesystem for.."
58 HOSTS
=$STRONGSWANHOSTS
66 cp gentoo-fs gentoo-fs-
$host
67 mount
-o loop gentoo-fs-
$host $LOOPDIR
68 cp -rfp $BUILDDIR/hosts
/${host}/etc
$LOOPDIR
69 if [ "$host" = "winnetou" ]
71 cp -rfp $UMLTESTDIR/testing
/images
$LOOPDIR/var
/www
/localhost
/htdocs
72 chroot
$LOOPDIR /etc
/openssl
/generate-crl
>> $LOGFILE 2>&1
74 chroot
$LOOPDIR /etc
/init.d
/depscan.sh
--update >> $LOGFILE 2>&1