[HEADS-UP] Moving /var/run and /var/lock to tmpfs in Rawhide
Paul Howarth
paul at city-fan.org
Wed Nov 24 16:33:57 UTC 2010
On 24/11/10 16:07, Paul Wouters wrote:
> On Wed, 24 Nov 2010, Petr Lautrbach wrote:
>
>>> - Many .spec files currently own subdirs of /var/run. These need to be
>>> updated to %ghost those dirs only, so that the automatic removal of
>>> these files/dirs on boot doesnt cause rpm to complain. The list of packages
>>> which own such files/subdir you find on the aforementioned feature
>>> page. I will mass-file bugs against these packages later tonight,
>>> requesting the %ghosting of these entries. For more information on the
>>> %ghost directive in .spec files see this page:
>>>
>>> http://www.rpm.org/max-rpm-snapshot/s1-rpm-inside-files-list-directives.html#S3-RPM-INSIDE-FLIST-GHOST-DIRECTIVE
>>
>> I think this is not needed. Files in /var/lock and /var/run are already cleaned by
>> rc.sysinit during boot process hence they should be already %ghost-ed now.
>
> This remark makes no sense? If they "already" needed ghosting, then the mass-file should
> be needed?
Files are directories are currently treated differently. The initscripts
clean out files from /var/lock and /var/run but leave directories alone.
So any package containing a file in these directories should already
have it marked as %ghost as it will already disappear at boot time.
However, most affected packages probably have directories rather than
files here, and *those* shouldn't need %ghost-ing because re-creating
them using a tmpfiles.d/*.conf file should be enough to keep rpm happy.
Paul.
More information about the devel
mailing list