From nobody Sat Nov 19 20:58:45 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NF5c21ylxz4hxNS for ; Sat, 19 Nov 2022 20:58:58 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NF5c14lXLz4QQq for ; Sat, 19 Nov 2022 20:58:57 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (123-1-88-210.area1b.commufa.jp [123.1.88.210]) (authenticated bits=0) by www121.sakura.ne.jp (8.16.1/8.16.1/[SAKURA-WEB]/20201212) with ESMTPA id 2AJKwjC3033600; Sun, 20 Nov 2022 05:58:46 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Sun, 20 Nov 2022 05:58:45 +0900 From: Tomoaki AOKI To: =?UTF-8?B?Q2hsYXN0w6Fr?= Miroslav Cc: FreeBSD CURRENT Subject: Re: loader.conf and rootdev option for memory disk Message-Id: <20221120055845.366367f1d371ae4d6eb8d747@dec.sakura.ne.jp> In-Reply-To: References: <2E58D34B-F8C5-4291-B019-9E24F56DC3DF@chlastak.cz> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4NF5c14lXLz4QQq X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N 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 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 wrote: > > > > > > > > On Fri, Nov 18, 2022 at 12:57 PM Chlasták Miroslav > 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]