NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-amd64/57707: NetBSD 10.0_RC1 does not deduce the root file system correctly when booting from a menu entry



>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@localhost:/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.



Home | Main Index | Thread Index | Old Index