NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-amd64/59207: unexpected behavior of dev command in bootstrap code
The following reply was made to PR port-amd64/59207; it has been noted by GNATS.
From: Paul Goyette <paul%whooppee.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: port-amd64/59207: unexpected behavior of dev command in bootstrap
code
Date: Sun, 23 Mar 2025 08:05:55 -0700 (PDT)
It seems that the rndseed command behaves similarly, although it is
more difficult to demonstrate - you cannot ask the boot loader to
display the value of rndseed. Instead you have to observe if the
``entropy ready'' message is displayed.
...
[ 1.0000000] WARNING: system needs entropy for security; see entropy(7)
[ 1.0000000] entropy: entering seed from bootloader with 256 bits of entropy
[ 1.0000000] entropy: ready
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
...
Edit the boot.cfg file to include the following line (at the end)
rndseed=/var/db/entropy-file
Reboot the vm, drop to the boot prompt (option 3 in the previous
example) and enter ``boot''. When the system comes up, note that
the ``entropy ready'' message is not displayed, and verify that the
file exists:
> boot
20919416+760104+1337048 [840369+1265856+940213]=0x18e8728
Loading /stand/amd64/10.99.12/modules/wapbl/wapbl.kmod
Loading /stand/amd64/10.99.12/modules/ufs/ufs.kmod
Loading /stand/amd64/10.99.12/modules/ffs/ffs.kmod
[ 1.0000000] WARNING: system needs entropy for security; see entropy(7)
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
...
# ls -l /var/db
total 24126
drwxr-x--- 2 root wheel 512 Mar 21 21:34 dhcpcd
-rw------- 1 root wheel 536 Mar 21 01:20 entropy-file
...
# cat /boot.cfg
menu=Boot normally:boot
menu=Boot single user:rndseed /var/db/entropy-file;boot -s
menu=Drop to boot prompt:prompt
menu=Boot normally:rndseed /var/db/entropy-file;boot hd0a:/netbsd
default=1
timeout=5
clear=1
dev=fd0a:
rndseed=/var/db/entropy-file
#
+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | 1B11 1849 721C 56C8 F63A | paul%whooppee.com@localhost |
| Software Developer | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost |
| & Network Engineer | | pgoyette99%gmail.com@localhost |
+---------------------+--------------------------+----------------------+
Home |
Main Index |
Thread Index |
Old Index