live: support livecd-install in 99-cleanupdb too

The same that was done by commit 50bfea9.
Note the duplication, maybe worth to split off...
This commit is contained in:
Michael Shigorin 2016-04-01 16:15:41 +03:00
parent a2bfcfb135
commit 33de2428ab

View File

@ -1,4 +1,8 @@
#!/bin/sh
# don't cripple the image to be copied over
[ -x /usr/sbin/live-install -o -x /usr/sbin/livecd-install ] && exit 0
# dump what's here by this point
echo "** live packages before rpmdb purge:"
rpmquery -a --qf='%{NAME} %{VERSION}-%{RELEASE}\n'