All of lore.kernel.org
 help / color / mirror / Atom feed
* Race condition? /tmp/net.ifaces and pre-pivot
@ 2009-07-23 21:37 Warren Togami
       [not found] ` <4A68D828.40506-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Warren Togami @ 2009-07-23 21:37 UTC (permalink / raw)
  To: initramfs

I am running into an odd issue that is supposedto be impossible.

pre-pivot/20write-ifcfg.sh is often being run but fails to write 
net.*.ifcfg files because /tmp/net.ifaces does not exist at that moment. 
  The mount was otherwise successful, and rdbreak before switch_root 
sees that /tmp/net.ifaces exists.

With plain "root=dhcp" with a NFS rootfs, it seems to never happen. 
However with "root=dhcp bridge", perhaps 25-75% of the time it is 
failing to write ifcfg files.

Some kind of race going on?  An inspection of the code seems to me that 
/tmp/net.ifaces should have already been created prior to pre-pivot?

Warren Togami
wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-07  7:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-23 21:37 Race condition? /tmp/net.ifaces and pre-pivot Warren Togami
     [not found] ` <4A68D828.40506-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-07-24  3:22   ` Warren Togami
     [not found]     ` <4A6928EE.6090707-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-07-24  7:21       ` Harald Hoyer
2009-08-07  7:35   ` Seewer Philippe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.