- remove stale rpm locks on startup
authorMark Huang <mlhuang@cs.princeton.edu>
Thu, 10 Aug 2006 18:49:16 +0000 (18:49 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Thu, 10 Aug 2006 18:49:16 +0000 (18:49 +0000)
vserver-reference.init

index 4ab7830..8f41e35 100755 (executable)
@@ -68,6 +68,9 @@ for file in /etc/hosts /etc/resolv.conf /etc/yum.conf /etc/planetlab/node_id \
     fi
 done
 
+# Remove stale RPM locks
+rm -f $vroot/var/lib/rpm/__db*
+
 # (Re)install GPG signing keys
 if [ -d /etc/pki/rpm-gpg ] ; then
     for vroot in $VROOTS ; do