[LFS Trac] #2189: cleanfs may not clean /var files when system clock is localtime

LFS Trac trac at linuxfromscratch.org
Mon May 26 00:57:48 PDT 2008


#2189: cleanfs may not clean /var files when system clock is localtime
---------------------------------------------+------------------------------
 Reporter:  dnicholson at linuxfromscratch.org  |        Owner:  lfs-book at linuxfromscratch.org
     Type:  defect                           |       Status:  new                          
 Priority:  normal                           |    Milestone:                               
Component:  Book                             |      Version:  SVN                          
 Severity:  normal                           |   Resolution:                               
 Keywords:  bootscripts                      |  
---------------------------------------------+------------------------------
Comment (by dnicholson at linuxfromscratch.org):

 Replying to [comment:2 dj at linuxfromscratch.org]:
 > This still doesn't fix #2160 (but I think Dan's proposed patch does, I
 just haven't used the main scripts in a long time), and Gerrard mentioned
 moving setclock up in the order in another part of the thread on LFS-Dev.
 setclock should still be moved if for nothing other than better logging
 IMO.

 There are actually three issues here.

 The patch for #2160 is still needed in any situation, I think. Whether or
 not there's goofiness from initial boot with stale pid files or it happens
 at a later time when you're trying to start services, I think it's best to
 just ignore pid files that point to dead or incorrect processes and remove
 them.

 Then there's the cleanfs issue with trying to remove files state files
 that are from a previous boot. Mounting /var/run and /var/lock as tmpfs
 would solve that issue. I think it's a bit of overkill, but I wouldn't be
 opposed to it.

 Then there's the issue of getting the clock synchronized as early as
 possible. It wouldn't affect either of the above two issues directly, but
 there are plenty of other good reasons to do it.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2189#comment:3>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.



More information about the lfs-book mailing list