All of lore.kernel.org
 help / color / mirror / Atom feed
From: Warren Togami <wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: initramfs <initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Dave Dillow <dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
Subject: Redundant nfsroot cmdline options
Date: Mon, 15 Jun 2009 15:46:24 -0400	[thread overview]
Message-ID: <4A36A510.5010709@redhat.com> (raw)

http://sourceforge.net/apps/trac/dracut/wiki/commandline

I am concerned about the proliferation of too many redundant ways of 
configuring netboot.  We should clearly document each supported method 
on this Wiki page and figure out which methods should be cut.  The most 
obvious methods to cut are NEW inventions of dracut that are redundant 
to other methods.

modules.d/95nfs/parse-nfsroot.sh
> case "$root" in
>     nfs|dhcp|'')
>         if getarg nfsroot= > /dev/null; then
>             root=nfs:$(getarg nfsroot=)
>         fi
>         ;;
>     nfs4)
>         if getarg nfsroot= > /dev/null; then
>             root=nfs4:$(getarg nfsroot=)
>         fi
>         ;;
>     /dev/nfs|/dev/nfs4)
>         if getarg nfsroot= > /dev/null; then
>             root=${root#/dev/}:$(getarg nfsroot=)
>         else
>             root=${root#/dev/}
>         fi
>         ;;
> esac

root=/dev/nfs nfsroot=...

* Documentation/filesystems/nfsroot.txt documents this method.  This 
method as documented requires kernel options that no distribution uses, 
to have a netboot kernel that bypasses initrd to find its filesystem 
from cmdline options.
* This is the only native method supported by Debian's initramfs-tools, 
where it is emulated.
* Red Hat/Fedora kernels nor mkinitrd has never supported this method.


This old syntax should be tolerated as legacy and supported by dracut. 
We should NOT however invent multiple redundant syntaxes derived from 
this legacy.

root=nfs       nfsroot=...
root=nfs4      nfsroot=...
root=/dev/nfs4 nfsroot=...

These are all new inventions in dracut, redundant to the following 
native methods already supported.

NFSv3
root=[<server-ip>:]<root-dir>[:<nfs-options>]
root=dhcp DHCP root-path=[<server-ip>:]<root-dir>[:<nfs-options>]

NFSv4
root=nfs4:[<server-ip>:]<root-dir>[:<nfs-options>]
root=dhcp DHCP root-path=nfs4:[<server-ip>:]<root-dir>[:<nfs-options>]

Are there any cases not possible by these syntaxes?

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

             reply	other threads:[~2009-06-15 19:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-15 19:46 Warren Togami [this message]
     [not found] ` <4A36A510.5010709-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-17  3:48   ` Redundant nfsroot cmdline options Dave Dillow
     [not found]     ` <20090617034849.GA22705-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-06-17  4:03       ` Warren Togami
     [not found]         ` <4A386B20.9010205-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-17  7:18           ` Seewer Philippe
     [not found]             ` <4A3898E0.8090700-omB+W0Dpw2o@public.gmane.org>
2009-06-17 19:26               ` Warren Togami
     [not found]                 ` <4A394352.1010007-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-17 20:38                   ` Warren Togami
     [not found]                     ` <4A39543D.9040206-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-18  7:07                       ` Seewer Philippe
2009-06-18  7:23                   ` Seewer Philippe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A36A510.5010709@redhat.com \
    --to=wtogami-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.