From nobody Fri Nov 18 19:56:53 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 4NDSH55b3Lz4h6pP for ; Fri, 18 Nov 2022 19:57:05 +0000 (UTC) (envelope-from mira@chlastak.cz) Received: from mxb-1-3f7.seznam.cz (mxb-1-3f7.seznam.cz [IPv6:2a02:598:128:8a00::1000:3f7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "email-registrator.ops.iszn.cz", Issuer "Servers 2022.1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NDSH41Z6yz3jCs for ; Fri, 18 Nov 2022 19:57:03 +0000 (UTC) (envelope-from mira@chlastak.cz) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=emailprofi.seznam.cz header.s=szn20221014 header.b=ighBgcsa; spf=none (mx1.freebsd.org: domain of mira@chlastak.cz has no SPF policy when checking 2a02:598:128:8a00::1000:3f7) smtp.mailfrom=mira@chlastak.cz; dmarc=none Received: from email.seznam.cz by smtpc-mxb-68545b7b84-q2m5b (smtpc-mxb-68545b7b84-q2m5b [2a02:598:128:8a00::1000:3f7]) id 58f79a54d4370ca05a800f6f; Fri, 18 Nov 2022 20:56:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emailprofi.seznam.cz; s=szn20221014; t=1668801419; bh=yjpmgGYM1ejiyUdnE9eXsegguqMC+51vsQgv5Nw4sVk=; h=Received:From:Content-Type:Mime-Version:Subject:Message-Id:Date: To:X-Mailer; b=ighBgcsaUgH3zYqc91Vf27pNx6KPCjV41U4LgY55O63QYkdgpy0ejNj8RTeKW4TC4 CmXpAHeDFFAqTg4hg0b16xyVVjWkYef+mm0E1joDnh/hIXnpXRU0ISRFkTSmoODljw T+rAxf0bS8Wxi5MflAOeWmcXUNCgjyEoEPeqp+PLUkIN16yqDw0Da1WuX2xnGqSaJh 1FaTPB+Ac7ZSgatsFnU28oYh3m1Yt4mfaCG0Cma/dqp+4NKr4Jr/2djXebAxR+/i5O 4pNd6CE/cosaL5oGxRLK2bR+osyDtTPmQU/+WgBXmAN5kv/bQGAZmLO9bfYrLaMSqM AbUiTZ+2Tf5+w== Received: from [10.10.100.102] (cust.uvtnet.cz [185.63.97.36]) by email-relay16.ko.seznam.cz (Seznam SMTPD 1.3.140) with ESMTP; Fri, 18 Nov 2022 20:56:58 +0100 (CET) From: =?utf-8?Q?Chlast=C3=A1k_Miroslav?= Content-Type: multipart/alternative; boundary="Apple-Mail=_3A7CEF12-6CD0-48EF-B7AE-B9193C5F13FD" 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 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: loader.conf and rootdev option for memory disk Message-Id: <2E58D34B-F8C5-4291-B019-9E24F56DC3DF@chlastak.cz> Date: Fri, 18 Nov 2022 20:56:53 +0100 To: FreeBSD CURRENT X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Spamd-Result: default: False [-3.80 / 15.00]; DWL_DNSWL_LOW(-1.00)[seznam.cz:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[emailprofi.seznam.cz:s=szn20221014]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[emailprofi.seznam.cz:+]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_ALL(0.00)[]; DMARC_NA(0.00)[chlastak.cz]; ASN(0.00)[asn:43037, ipnet:2a02:598::/32, country:CZ]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4NDSH41Z6yz3jCs X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_3A7CEF12-6CD0-48EF-B7AE-B9193C5F13FD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi all, In the /boot/defaults/loader.conf are these options for memory disk = settings: #mdroot_load=3D"YES" # The "mdroot" prefix is arbitrary. #mdroot_type=3D"md_image" # Create md(4) disk at boot. #mdroot_name=3D"/boot/root.img" # Path to a file containing the image. #rootdev=3D"ufs:/dev/md0" # Set the root filesystem to md(4) = device. But - is this example for rootdev option still right? Because = =E2=80=9Cufs:/dev/md0=E2=80=9D works fine on freebsd 12.1, but on = freebsd 12.3 this does not work and generates error message: Can=E2=80=99t determine root device When I use this option with value =E2=80=9C/dev/md0=E2=80=9D or = =E2=80=9Cmd0=E2=80=9D (even with this option commented out), so the = machine boots correctly without any error. =E2=80=94 Mira= --Apple-Mail=_3A7CEF12-6CD0-48EF-B7AE-B9193C5F13FD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = all,

In the = /boot/defaults/loader.conf are these options for memory disk = settings:

#mdroot_load=3D"YES"            =   # The "mdroot" prefix is arbitrary.
#mdroot_type=3D"md_image"   =       # Create md(4) disk at boot.
#mdroot_name=3D"/boot/root.img"   # Path to a file = containing the image.
#rootdev=3D"ufs:/dev/md0"         # Set = the root filesystem to md(4) device.


But - is this example for rootdev option still right? Because = =E2=80=9Cufs:/dev/md0=E2=80=9D works fine on freebsd 12.1, but on = freebsd 12.3 this does not work and generates error message:

Can=E2=80=99t determine root device


When I use this option with value =E2=80=9C/dev/md0=E2=80=9D = or =E2=80=9Cmd0=E2=80=9D (even with this option commented out), so = the machine boots correctly without any error.

=E2=80=94
Mira
= --Apple-Mail=_3A7CEF12-6CD0-48EF-B7AE-B9193C5F13FD--