Re: EFI amd64: boot.cfg goes where?

Robert Elz <[email protected]> Tue, 04 Aug 2026 02:27:52 +0700
Newsgroups gmane.os.netbsd.general
Message-ID <[email protected]>
    Date:        Mon, 3 Aug 2026 17:42:40 +0200
    From:        [email protected]
    Message-ID:  <[email protected]>

  | With the caveat that the number of /dev/dk* is, by default, 32 [0-31].
  | So you might make a lot of partitions, and end up unable by default to
  | mount them.

True.   It is not hard to fix however (cd /dev; ./MAKEDEV dkN dkM ...)
(Sometimes MAKEDEV is located elsewhere I believe, maybe /etc ?)

An easy way to help with that is to turn on debpubd in /etc/rc.conf

	jacaranda$ grep devpubd /etc/rc.conf
	devpubd=YES

then when you create a new wedge its /dev/dk* will just get made for you
(/libexec/devpubd-hooks/01-makedev) if necessary, though it does only happen
after booting, so anything that is discovered during boot needs a device
to be in /dev already ... but if you create new partitions while running
NetBSD, either using gpt to make a new partition, or just plugging in a
removable device (sdN or whatever) then, if not enough /dev/dk's exist (or
for that matter, not enough /dev/sdN's), a new one will be made, and once
made it will remain (unless someone goes and rm's it).

kre

ps: the latest dkN devpubd made for me was /dev/dk106 - I also have /dev/sd's
up to sd19, though whether devpubd was responsible for any of those or not,
I no longer remember.