All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFT PATCH] Delay netroot mounting by 1 second
@ 2009-06-19 13:45 Seewer Philippe
       [not found] ` <4A3B968C.5070600-omB+W0Dpw2o@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: Seewer Philippe @ 2009-06-19 13:45 UTC (permalink / raw)
  To: <initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>

While testing in our production environment, I discovered
that the time between interface configuration and trying 
to mount the nfs root is too short if the dhcp-server 
provides an mtu. Having to set a mtu means that netroot
executes 'ip link down', set's the mtu and the does
'ip link up' again.

This results in the mount error "No route to host", because
the network equipment has not had enough time to "shake hands". 
The patch below adds a sleep 1 after interface configuration, 
to give the equipment enough time.

Could anyone with a similar environment (and possibly with
a netroot server reachable only via default route) test this
with and without this patch to confirm?

Thank you,
Philippe


diff --git a/modules.d/40network/netroot b/modules.d/40network/netroot
index f719d93..81b99f7 100755
--- a/modules.d/40network/netroot
+++ b/modules.d/40network/netroot
@@ -88,7 +88,11 @@ for iface in $IFACES ; do
     . /tmp/net.$iface.up
 done
 
-[ -e /tmp/net.$netif.gw ]          && . /tmp/net.$netif.gw
+# Wait a bit until we continue to give the interface(s) time to
+# configure
+sleep 1
+
+[ -e /tmp/net.$netif.gw ]          && . /tmp/net.$netif.gw 
 [ -e /tmp/net.$netif.hostname ]    && . /tmp/net.$netif.hostname
 [ -e /tmp/net.$netif.resolv.conf ] && cp -f /tmp/net.$netif.resolv.conf /etc/resolv.conf
 
--
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 related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2009-06-25  4:37 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-19 13:45 [RFT PATCH] Delay netroot mounting by 1 second Seewer Philippe
     [not found] ` <4A3B968C.5070600-omB+W0Dpw2o@public.gmane.org>
2009-06-19 14:47   ` Bill Nottingham
     [not found]     ` <20090619144705.GD2514-Zdt1ptygihhQcNjhGXsBABcY2uh10dtjAL8bYrjMMd8@public.gmane.org>
2009-06-19 14:51       ` Seewer Philippe
     [not found]         ` <4A3BA5EA.3020202-omB+W0Dpw2o@public.gmane.org>
2009-06-19 15:06           ` Bill Nottingham
2009-06-19 15:06           ` Warren Togami
2009-06-19 16:08           ` Victor Lowther
     [not found]             ` <84DF1DC6-5F06-4D6D-91A4-56D996D229B1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-06-19 16:19               ` David Dillow
     [not found]                 ` <1245428342.32104.3.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-19 16:58                   ` Warren Togami
2009-06-22  7:50                   ` Hannes Reinecke
     [not found]                     ` <4A3F37B8.7050902-l3A5Bk7waGM@public.gmane.org>
2009-06-22 15:10                       ` David Dillow
     [not found]                         ` <1245683450.3544.6.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2009-06-22 16:17                           ` Seewer Philippe
     [not found]                             ` <4A3FAE9E.5000201-omB+W0Dpw2o@public.gmane.org>
2009-06-22 17:17                               ` David Dillow
     [not found]                                 ` <1245691069.3875.11.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-22 18:47                                   ` Seewer Philippe
     [not found]                                     ` <4A3FD1C5.30006-omB+W0Dpw2o@public.gmane.org>
2009-06-22 21:02                                       ` David Dillow
     [not found]                                         ` <1245704521.3875.31.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-23  7:31                                           ` Seewer Philippe
     [not found]                                             ` <4A4084D3.3060705-omB+W0Dpw2o@public.gmane.org>
2009-06-23 16:16                                               ` David Dillow
     [not found]                                                 ` <1245773764.11486.21.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-24  6:56                                                   ` Seewer Philippe
     [not found]                                                     ` <4A41CE20.5000809-omB+W0Dpw2o@public.gmane.org>
2009-06-25  3:30                                                       ` David Dillow
     [not found]                                                         ` <1245900638.22064.24.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2009-06-25  4:37                                                           ` David Dillow
2009-06-22 17:22                               ` David Dillow
2009-06-24  8:29                               ` Bogdan Costescu
2009-06-22 16:06                       ` 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.