Merge remote-tracking branch 'origin/pr/255'
* origin/pr/255: Overwrite .rpmdb for debian updatevm Fixes QubesOS/qubes-issues#6124 Fixes QubesOS/qubes-issues#5282
This commit is contained in:
commit
6262580660
@ -76,7 +76,8 @@ if [ -e /etc/debian_version ]; then
|
|||||||
# Default rpm configuration on Debian uses ~/.rpmdb for rpm database (as
|
# Default rpm configuration on Debian uses ~/.rpmdb for rpm database (as
|
||||||
# rpm isn't native package manager there)
|
# rpm isn't native package manager there)
|
||||||
mkdir -p "$DOM0_UPDATES_DIR$HOME"
|
mkdir -p "$DOM0_UPDATES_DIR$HOME"
|
||||||
ln -nsf "$DOM0_UPDATES_DIR/var/lib/rpm" "$DOM0_UPDATES_DIR$HOME/.rpmdb"
|
rm -rf "$DOM0_UPDATES_DIR$HOME/.rpmdb"
|
||||||
|
cp -r "$DOM0_UPDATES_DIR/var/lib/rpm" "$DOM0_UPDATES_DIR$HOME/.rpmdb"
|
||||||
fi
|
fi
|
||||||
# Rebuild rpm database in case of different rpm version
|
# Rebuild rpm database in case of different rpm version
|
||||||
rm -f $DOM0_UPDATES_DIR/var/lib/rpm/__*
|
rm -f $DOM0_UPDATES_DIR/var/lib/rpm/__*
|
||||||
|
Loading…
Reference in New Issue
Block a user