git://git.onelab.eu
/
vserver-reference.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5612b1
)
the code looks like it was incomplete, since it referenced a local value
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Mon, 3 Aug 2009 16:00:31 +0000
(16:00 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Mon, 3 Aug 2009 16:00:31 +0000
(16:00 +0000)
rather than iterating across all of them. This fix applies the 'rm' to all
VROOT dirs, and prevents 'rpm --allmatches' from hanging on boot up.
vserver-reference.init
patch
|
blob
|
history
diff --git
a/vserver-reference.init
b/vserver-reference.init
index
fd00823
..
410e807
100755
(executable)
--- a/
vserver-reference.init
+++ b/
vserver-reference.init
@@
-142,8
+142,12
@@
for file in /etc/hosts /etc/resolv.conf /etc/planetlab/node_id \
fi
done
-# Remove stale RPM locks
-rm -f $vroot/var/lib/rpm/__db*
+
+for vroot in $VROOTS ; do
+ # NOTE: without this step, the 'rpm --allmatches' step can hang on boot
+ # Remove stale RPM locks from all VROOT dirs
+ rm -f $vroot/var/lib/rpm/__db*
+done
# (Re)install GPG signing keys
if [ -d /etc/pki/rpm-gpg ] ; then