All of lore.kernel.org
 help / color / mirror / Atom feed
* TODO: Legacy NFS should be root= only
@ 2009-06-26  4:26 Warren Togami
       [not found] ` <4A444DED.7040601-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Warren Togami @ 2009-06-26  4:26 UTC (permalink / raw)
  To: initramfs

mkinitrd Legacy
	root=IP:path
	(IP:path is OK in DHCP root-path too.)
nfsroot.tx Legacy
	root=/dev/nfs [nfsroot=...]

netroot= equivalents of the two Legacy we shouldn't support.  They are 
not from legacy precedents.

(I tried to get de-support netroot= by unconditionally netroot=$root, 
but the argument parser can't recognize root=dhcp in that case.  Dillow 
says he has an idea to split and clean up argument parsing.)

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] 2+ messages in thread

* Re: TODO: Legacy NFS should be root= only
       [not found] ` <4A444DED.7040601-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2009-06-26  7:13   ` Seewer Philippe
  0 siblings, 0 replies; 2+ messages in thread
From: Seewer Philippe @ 2009-06-26  7:13 UTC (permalink / raw)
  To: Warren Togami; +Cc: initramfs

Warren Togami wrote:
> mkinitrd Legacy
>     root=IP:path
>     (IP:path is OK in DHCP root-path too.)
> nfsroot.tx Legacy
>     root=/dev/nfs [nfsroot=...]
> 
> netroot= equivalents of the two Legacy we shouldn't support.  They are 
> not from legacy precedents.
> 
> (I tried to get de-support netroot= by unconditionally netroot=$root, 
> but the argument parser can't recognize root=dhcp in that case.  Dillow 
> says he has an idea to split and clean up argument parsing.)

Mind giving the patch below a go? This should fix the issue.


diff --git a/modules.d/95nfs/parse-nfsroot.sh b/modules.d/95nfs/parse-nfsroot.sh
index 96076fd..72f3c2e 100755
--- a/modules.d/95nfs/parse-nfsroot.sh
+++ b/modules.d/95nfs/parse-nfsroot.sh
@@ -72,6 +72,17 @@ netroot_to_var() {
 [ -z "$netroot" ] && netroot=$(getarg netroot=)
 [ -z "$nfsroot" ] && nfsroot=$(getarg nfsroot=)
 
+# Netroot cmdline argument must be ignored, but must be used if
+# we're inside netroot to parse dhcp root-path
+if [ -n "$netroot" ] ; then
+    if [ "$netroot" = "$(getarg netroot=)" ] ; then
+    warn "Ignoring netroot argument for NFS"
+    netroot=$root
+    fi
+else
+    netroot=$root;
+fi
+
 # Handle old style <server-ip>:/<path
 # FIXME: root= is not handled by this yet.
 case "$netroot" in
@@ -79,17 +90,6 @@ case "$netroot" in
        netroot=nfs:$netroot;;
 esac
 
-# Root takes precedence over netroot
-case "${root%%:*}" in
-    nfs|nfs4|/dev/nfs)
-    if [ -n "$netroot" ] ; then
-	warn "root takes precedence over netroot. Ignoring netroot"
-
-    fi
-    netroot=$root
-    ;;
-esac
-
 # Continue if nfs or blank prefix
 case "${netroot%%:*}" in
     ''|nfs|nfs4|/dev/nfs);;
--
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] 2+ messages in thread

end of thread, other threads:[~2009-06-26  7:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-26  4:26 TODO: Legacy NFS should be root= only Warren Togami
     [not found] ` <4A444DED.7040601-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-26  7:13   ` 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.