git://git.onelab.eu
/
sliceimage.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- clean up yum cache before exiting
[sliceimage.git]
/
vserver-reference.init
diff --git
a/vserver-reference.init
b/vserver-reference.init
index
21242ab
..
6287054
100755
(executable)
--- a/
vserver-reference.init
+++ b/
vserver-reference.init
@@
-9,7
+9,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004 The Trustees of Princeton University
#
-# $Id$
+# $Id
: vserver-reference.init,v 1.19.4.2 2006/05/08 20:53:35 mlhuang Exp
$
#
case "$1" in
#
case "$1" in
@@
-60,23
+60,22
@@
setattr --barrier /vservers
# Copy configuration files from host to slices
for file in /etc/hosts /etc/resolv.conf /etc/yum.conf /etc/planetlab/node_id \
/etc/planetlab/plc_config* /etc/planetlab/php/* \
# Copy configuration files from host to slices
for file in /etc/hosts /etc/resolv.conf /etc/yum.conf /etc/planetlab/node_id \
/etc/planetlab/plc_config* /etc/planetlab/php/* \
- /etc/pki/rpm-gpg/
RPM-GPG-KEY-planetlab
; do
+ /etc/pki/rpm-gpg/
*
; do
if [ -r $file ] ; then
for vroot in $VROOTS ; do
if [ -r $file ] ; then
for vroot in $VROOTS ; do
- if [ "$file" = "/etc/pki/rpm-gpg/RPM-GPG-KEY-planetlab" -a \
- ! -f $vroot/$file ] ; then
- import=1
- else
- import=0
- fi
install -D -m 644 $file $vroot/$file
install -D -m 644 $file $vroot/$file
- if [ $import -eq 1 ] ; then
- chroot $vroot rpm --import $file
- fi
done
fi
done
done
fi
done
+# (Re)install GPG signing keys
+if [ -d /etc/pki/rpm-gpg ] ; then
+ for vroot in $VROOTS ; do
+ chroot $vroot rpm --allmatches -e gpg-pubkey || :
+ chroot $vroot rpm --import /etc/pki/rpm-gpg/* || :
+ done
+fi
+
# Old versions of the Boot Manager copied portions of the Boot CD to
# /mnt/cdrom/bootme, to support old scripts which assumed that the
# Boot CD was mounted even in production mode. Now, it just copies it
# Old versions of the Boot Manager copied portions of the Boot CD to
# /mnt/cdrom/bootme, to support old scripts which assumed that the
# Boot CD was mounted even in production mode. Now, it just copies it