svn commit: r365643 - head/bin/cp
Stefan Esser
se at freebsd.org
Thu Sep 24 06:41:03 UTC 2020
Am 23.09.20 um 19:23 schrieb Warner Losh> But for this issue, we're not
mounting devfs early enough. We should
> fix that. Removing /dev/null from the boot process likely is never going
> to happen because we use it all over the place to discard output...
> There's ~200 instances of it in the boot rc scripts, so getting rid of
> it there would also be quite the effort, with the same question.
Removal of /dev/null from rc.d scripts should be quite simple,
since most cases could just use ">-" (close file descriptor)
instead. Other usage could be substituted with ":>" followed
by chown.
I'd be willing to generate patches for review, if there is any
chance such a change might be accepted into -CURRENT.
I could not find any use of /dev/zero, but e.g. rc.d/syscons
uses ${kbddev} (i.e. /dev/ttyv0) and rc.d/zvol performs swapon
on /dev/zvol/${name}, rc.d/random uses /dev/random and so on.
But those further references to /dev nodes will in general be
NOPs if /dev is not available (some test for existence of the
node they rely on, other just fail trying to access them, but
without negative effect on going multi-user).
Regards, STefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20200924/f893868f/attachment.sig>
More information about the svn-src-all
mailing list