virt-preview for Fedora 12
[ovirt-node-image.git] / livecd-rpms
blob0649cba30b65fb9c83542ec4a9935d85c6606af4
1 #!/bin/bash
3 # Script to install/update a livecd with a set of RPMS provided in a directory
4 # Copyright 2009 Red Hat, Inc.
5 # Written by Perry Myers <pmyers@redhat.com>
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; version 2 of the License.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Library General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 if [[ $# < 1 ]]; then
21 echo "Usage: $0 rpmdir"
22 exit 1
25 RPMDIR=$1
27 rpm --root $PWD -Uvh $(find $RPMDIR -type f -name "*.rpm" -print)