NetBSD Problem Report #57707
From triaxx@netbsd.org Sun Nov 19 20:19:58 2023
Return-Path: <triaxx@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 108C21A9238
for <gnats-bugs@gnats.NetBSD.org>; Sun, 19 Nov 2023 20:19:58 +0000 (UTC)
Message-Id: <20231119201956.51BC61A9239@mollari.NetBSD.org>
Date: Sun, 19 Nov 2023 20:19:56 +0000 (UTC)
From: triaxx@netbsd.org
Reply-To: triaxx@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: NetBSD 10.0_RC1 does not deduce the root file system correctly when booting from a menu entry
X-Send-Pr-Version: 3.95
>Number: 57707
>Category: port-amd64
>Synopsis: NetBSD 10.0_RC1 does not deduce the root file system correctly when booting from a menu entry
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-amd64-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 19 20:20:00 +0000 2023
>Originator: Frédéric Fauberteau
>Release: NetBSD 10.0_RC1
>Organization:
>Environment:
System: NetBSD goliath.triaxx.org 10.0_RC1 NetBSD 10.0_RC1 (GENERIC) #0: Sun Nov 5 18:30:08 UTC 2023 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
# gpt show -l wd0
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6 Unused
40 262144 1 GPT part - boot
262184 67108864 2 GPT part - swap
67371048 268435456 3 GPT part - root
335806504 268435456 4 GPT part - rootdev
604241960 1349283168 5 GPT part - home
1953525128 7 Unused
1953525135 32 Sec GPT table
1953525167 1 Sec GPT header
# cat /mnt/efi/netbsd/boot.cfg
menu=Boot NetBSD 10.0_RC1:rndseed /var/db/entrypy-file;boot NAME=root:netbsd
menu=Boot NetBSD 10.99.10:rndseed /var/db/entrypy-file;boot NAME=rootdev:netbsd
menu=Drop to boot prompt:prompt
default=1
timeout=5
clear=1
>How-To-Repeat:
During boot, these lines are displayed:
[ 3.0783708] boot device: wd0
[ 3.0783708] root on dk0 dumps on dk1
[ 3.0783708] root file system type: msdos
[ 3.0883707] kern.module.path=/stand/amd64/10.0/modules
[ 3.0884226] exec /sbin/init: error 2
By droping to boot prompt and by typing 'boot NAME=root:netbsd', the lines are displayed:
[ 3.0908364] boot device: wd0
[ 3.0908364] root on dk2 dumps on dk1
[ 3.0908364] root file system type: ffs
[ 3.0908364] kern.module.path=/stand/amd64/10.0/modules
and init process starts normally.
>Fix:
By adding a root command in the menu entry, the kernel deduces correctly the root file system:
menu=Boot NetBSD 10.0_RC1:rndseed /var/db/entrypy-file;root NAME=root;boot NAME=root:netbsd
But it is not consistent since a single boot command typed from the prompt works when the same boot command from a menu entry does not.
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.