|
List Info
Thread: root= vs. boodev=
|
|
| root= vs. boodev= |

|
2007-06-17 10:45:22 |
The NetBSD documentation is full of
"root=/dev/hda1" examples. As far
as I can tell nothing in the kernel cares about that.
Does anyone remember what the significance of that parameter
ist?
Maybe it has been replace by the undocumented rootdev=
parameter?
Is that so?
--chris
|
|
| Re: root= vs. boodev= |

|
2007-06-17 12:06:00 |
On Sun, Jun 17, 2007 at 05:45:22PM +0200, Christoph Badura
wrote:
> The NetBSD documentation is full of
"root=/dev/hda1" examples. As far
> as I can tell nothing in the kernel cares about that.
>
> Does anyone remember what the significance of that
parameter ist?
This is bad cut'n'paste from linux configs.
>
> Maybe it has been replace by the undocumented rootdev=
parameter?
> Is that so?
it's 'bootdev='
--
Manuel Bouyer <bouyer antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la
difference
--
|
|
| Re: root= vs. boodev= |

|
2007-06-17 15:42:19 |
On Sun, Jun 17, 2007 at 07:06:00PM +0200, Manuel Bouyer
wrote:
> On Sun, Jun 17, 2007 at 05:45:22PM +0200, Christoph
Badura wrote:
> > The NetBSD documentation is full of
"root=/dev/hda1" examples. As far
> > as I can tell nothing in the kernel cares about
that.
> >
> > Does anyone remember what the significance of that
parameter ist?
>
> This is bad cut'n'paste from linux configs.
>
> >
> > Maybe it has been replace by the undocumented
rootdev= parameter?
> > Is that so?
>
> it's 'bootdev='
our multiboot support also uses root= . Could NetBSD/Xen
support this for
consistency?
Pavel
|
|
| Re: root= vs. boodev= |
  France |
2007-06-18 09:34:50 |
On Sun, Jun 17, 2007 at 10:42:19PM +0200, Pavel Cahyna
wrote:
> > it's 'bootdev='
>
> our multiboot support also uses root= . Could
NetBSD/Xen support this for
> consistency?
Yes, it's easy:
--- xen_machdep.c 22 Jan 2006 20:15:51 -0000
1.16
+++ xen_machdep.c 18 Jun 2007 14:34:10 -0000
 -187,7
+187,8 
switch (what) {
case XEN_PARSE_BOOTDEV:
- if (strncasecmp(opt,
"bootdev=", 8) == 0)
+ if (strncasecmp(opt,
"bootdev=", 8) == 0 ||
+ strncasecmp(opt,
"root=", 5) == 0)
strncpy(xcp->xcp_bootdev,
opt + 8,
sizeof(xcp->xcp_bootdev));
break;
--
Manuel Bouyer, LIP6, Universite Paris VI.
Manuel.Bouyer lip6.fr
NetBSD: 26 ans d'experience feront toujours la
difference
--
|
|
| Re: root= vs. bootdev= |

|
2007-06-18 16:17:19 |
On Sun, Jun 17, 2007 at 07:06:00PM +0200, Manuel Bouyer
wrote:
> On Sun, Jun 17, 2007 at 05:45:22PM +0200, Christoph
Badura wrote:
> > The NetBSD documentation is full of
"root=/dev/hda1" examples. As far
> > as I can tell nothing in the kernel cares about
that.
> This is bad cut'n'paste from linux configs.
OK.
> > Maybe it has been replace by the undocumented
rootdev= parameter?
> > Is that so?
> it's 'bootdev='
Err, right 'bootdev='. I was in a bit of a hurry.
--chris
|
|
| Re: root= vs. boodev= |

|
2007-06-28 15:06:18 |
On Mon, Jun 18, 2007 at 04:34:50PM +0200, Manuel Bouyer
wrote:
> On Sun, Jun 17, 2007 at 10:42:19PM +0200, Pavel Cahyna
wrote:
> > > it's 'bootdev='
> >
> > our multiboot support also uses root= . Could
NetBSD/Xen support this for
> > consistency?
>
> Yes, it's easy:
> --- xen_machdep.c 22 Jan 2006 20:15:51 -0000
1.16
> +++ xen_machdep.c 18 Jun 2007 14:34:10 -0000
>  -187,7 +187,8 
>
> switch (what) {
> case XEN_PARSE_BOOTDEV:
> - if (strncasecmp(opt,
"bootdev=", 8) == 0)
> + if (strncasecmp(opt,
"bootdev=", 8) == 0 ||
> + strncasecmp(opt,
"root=", 5) == 0)
>
strncpy(xcp->xcp_bootdev, opt + 8,
Shouldn't this be 5 for the second case?
>
sizeof(xcp->xcp_bootdev));
> break;
|
|
| Re: root= vs. boodev= |

|
2007-06-28 15:55:14 |
On Thu, Jun 28, 2007 at 10:06:18PM +0200, Pavel Cahyna
wrote:
> On Mon, Jun 18, 2007 at 04:34:50PM +0200, Manuel Bouyer
wrote:
> > On Sun, Jun 17, 2007 at 10:42:19PM +0200, Pavel
Cahyna wrote:
> > > > it's 'bootdev='
> > >
> > > our multiboot support also uses root= . Could
NetBSD/Xen support this for
> > > consistency?
> >
> > Yes, it's easy:
> > --- xen_machdep.c 22 Jan 2006 20:15:51 -0000
1.16
> > +++ xen_machdep.c 18 Jun 2007 14:34:10
-0000
> >  -187,7 +187,8 
> >
> > switch (what) {
> > case XEN_PARSE_BOOTDEV:
> > - if (strncasecmp(opt,
"bootdev=", 8) == 0)
> > + if (strncasecmp(opt,
"bootdev=", 8) == 0 ||
> > + strncasecmp(opt,
"root=", 5) == 0)
> >
strncpy(xcp->xcp_bootdev, opt + 8,
>
> Shouldn't this be 5 for the second case?
You're right. I fixed it. thanks !
--
Manuel Bouyer <bouyer antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la
difference
--
|
|
[1-7]
|
|