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.
-# 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
# (Re)install GPG signing keys
if [ -d /etc/pki/rpm-gpg ] ; then