From 6f35c13be2d1f6c30bc4873fb3c6f01829a88355 Mon Sep 17 00:00:00 2001 From: Bruce A Downs Date: Thu, 27 Sep 2012 10:25:18 -0600 Subject: [PATCH] vm/spec: mod to core-vm.spec to add test for files core rpm was failing during uninstall attempting to move non-existent files * /var/lib/qubes/fstab.orig * /var/lib/qubes/serial.orig --- rpm_spec/core-vm.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index 0c576bf2..f1a5e5dc 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -328,9 +328,13 @@ mkdir -p /rw %preun if [ "$1" = 0 ] ; then # no more packages left + if [ -e /var/lib/qubes/fstab.orig ] ; then mv /var/lib/qubes/fstab.orig /etc/fstab + fi mv /var/lib/qubes/removed-udev-scripts/* /etc/udev/rules.d/ + if [ -e /var/lib/qubes/serial.orig ] ; then mv /var/lib/qubes/serial.orig /etc/init/serial.conf + fi fi %postun