Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Nov 2022 05:58:45 +0900
From:      Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
To:        =?UTF-8?B?Q2hsYXN0w6Fr?= Miroslav <mira@chlastak.cz>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: loader.conf and rootdev option for memory disk
Message-ID:  <20221120055845.366367f1d371ae4d6eb8d747@dec.sakura.ne.jp>
In-Reply-To: <F3702494-1433-4324-B972-52FBD84EFFD8@chlastak.cz>
References:  <2E58D34B-F8C5-4291-B019-9E24F56DC3DF@chlastak.cz> <CANCZdfqGhHXCJtUOctpoB-sAuxSdzJZERSBritTazp_uragZ=Q@mail.gmail.com> <F3702494-1433-4324-B972-52FBD84EFFD8@chlastak.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
IIUC, rootdev should be set in loader.env, if needed.
`man 5 loader.conf` has nothing about rootdev variable.

(It's undocumented, IIRC.)


On Sat, 19 Nov 2022 19:57:47 +0100
Chlasták Miroslav <mira@chlastak.cz> wrote:

> I have my device working for now - but the question is - Is the documentation and example for “rootdev” right or not?
> 
> —
> Mira
> 
> > On 18 Nov 2022, at 21:13, Warner Losh <imp@bsdimp.com> wrote:
> > 
> > 
> > 
> > On Fri, Nov 18, 2022 at 12:57 PM Chlasták Miroslav <mira@chlastak.cz <mailto:mira@chlastak.cz>> wrote:
> > Hi all,
> > 
> > In the /boot/defaults/loader.conf are these options for memory disk settings:
> > 
> > #mdroot_load="YES"              # The "mdroot" prefix is arbitrary.
> > #mdroot_type="md_image"         # Create md(4) disk at boot.
> > #mdroot_name="/boot/root.img"   # Path to a file containing the image.
> > #rootdev="ufs:/dev/md0"         # Set the root filesystem to md(4) device.
> > 
> > 
> > But - is this example for rootdev option still right? Because “ufs:/dev/md0” works fine on freebsd 12.1, but on freebsd 12.3 this does not work and generates error message:
> > 
> > Can’t determine root device
> > 
> > 
> > When I use this option with value “/dev/md0” or “md0” (even with this option commented out), so the machine boots correctly without any error.
> > 
> > I think you want vfs.root.mountfrom= instead of rootdev= here.
> > 
> > Warner
> >  
> > —
> > Mira
> 


-- 
青木 知明  [Tomoaki AOKI]    <junchoon@dec.sakura.ne.jp>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20221120055845.366367f1d371ae4d6eb8d747>