]> git.ipfire.org Git - thirdparty/libvirt.git/commit
spec: mark directories in /var/run as ghosts
authorEric Blake <eblake@redhat.com>
Wed, 30 Nov 2011 22:34:42 +0000 (15:34 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 16 May 2012 23:07:04 +0000 (17:07 -0600)
commitf2b5c5ff2289cf29fec0e40cc3ddd08b5db2c6f2
tree84c6d1c1d675a580316f26615289e32455794246
parentc6ead37ba11596cb2f0cadb6db0045b263ebb002
spec: mark directories in /var/run as ghosts

We have several directories that are created on the fly, and which
only contain state relevant to a running libvirtd process (all
located in /var/run).  Since the directories are created as needed,
and make no sense without a running libvirtd, we want them deleted
if libvirt is uninstalled.  And in F15 and newer, /var/run is on
tmpfs (forcing us to recreate on the fly); which means that someone
trying to verify a complete rpm will fail if the directory does not
currently exist because libvirtd has not been started since boot.
The solution, then, is to mark the directories as %ghost, so that
rpm knows that we own them and will clean it up if libvirt is
uninstalled, but will no longer create the directory for us at
install, nor complain at verify time if the directory does not exist.

See https://bugzilla.redhat.com/show_bug.cgi?id=656611.

* libvirt.spec.in (%files): Add %ghost to temporary directories
that we don't install, but want cleaned up on libvirt removal.
(cherry picked from commit 764574f7c73d72e42f69f225b6bbe61fae5ab28b)
libvirt.spec.in