[LFS Trac] #1720: On, swapon sometimes fails

LFS Trac trac at linuxfromscratch.org
Thu Mar 9 04:05:32 PST 2006

#1720: On, swapon sometimes fails
 Reporter:  martyman99999 at yahoo.com  |        Owner:  matthew at linuxfromscratch.org
     Type:  defect                   |       Status:  assigned                    
 Priority:  normal                   |    Milestone:                              
Component:  Bootscripts              |      Version:  udev_update                 
 Severity:  blocker                  |   Resolution:                              
 Keywords:                           |  
Comment (by alexander at linuxfromscratch.org):

 You have not added a bugreport with both the mkdir and udev-086. If that
 combination produces the bugreport, read further. Otherwise, ignore.

 No need to try udev-087. Even if this "fixes" the bug, please revert to
 086, because that's accidental.

 I '''think''' that the only way to handle this bug is to change the
 waiting part. But that's a big sledgehammer that only reduces the
 probability of the failure to something like 10^-10^ instead of completely
 eliminating it.

 Instead of

         while test -d /dev/.udev/queue; do
             sleep 0.1
             test "$loop" -gt 0 || break
             loop=$(($loop - 1))

 try (completely untested)

         while true ; do
             sleep 0.1
             test -d /dev/.udev/queue && confirm=0 || confirm=$(( $confirm
 + 1 ))
             loop=$(( $loop - 1 ))
             test $loop -gt 0 || break
             test $confirm -lt 10 || break

 This is supposed to exit the loop not when the /dev/.udev/queue directory
 disappears for a moment, but when it also doesn't reapear 10 times in

Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/1720>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.

More information about the lfs-book mailing list