]> git.ipfire.org Git - thirdparty/libvirt.git/commit
spec: mark directories in /var/run as ghosts v0.9.8-rc1
authorEric Blake <eblake@redhat.com>
Wed, 30 Nov 2011 22:34:42 +0000 (15:34 -0700)
committerDaniel Veillard <veillard@redhat.com>
Thu, 1 Dec 2011 02:56:10 +0000 (10:56 +0800)
commit764574f7c73d72e42f69f225b6bbe61fae5ab28b
tree42a32e9af1b5adec05437ec1bd6e9f0b23374f5a
parentcb1e7b61c8f6d4cc0809b6c52830f95c0404222a
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.
libvirt.spec.in