Page MenuHomeFreeBSD

D57447.id179236.diff
No OneTemporary

D57447.id179236.diff

diff --git a/libexec/rc/rc b/libexec/rc/rc
--- a/libexec/rc/rc
+++ b/libexec/rc/rc
@@ -46,6 +46,11 @@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export HOME PATH
+if ! [ -c /dev/null ]; then
+ echo "/dev is not populated" >&2
+ exit 1
+fi
+
if [ "$1" = autoboot ]; then
autoboot=yes
_boot="faststart"
diff --git a/share/man/man8/rc.8 b/share/man/man8/rc.8
--- a/share/man/man8/rc.8
+++ b/share/man/man8/rc.8
@@ -28,7 +28,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd September 20, 2024
+.Dd June 4, 2026
.Dt RC 8
.Os
.Sh NAME
@@ -97,6 +97,16 @@
.Ss Operation of Nm
.Bl -enum
.It
+Verify that
+.Pa /dev/null
+exists and is a character device.
+If that is not the case,
+.Nm
+prints an error message and terminates.
+This is normally caused by forgetting to enable
+.Xr devfs 5
+in a jail's configuration.
+.It
If autobooting, set
.Va autoboot Ns = Ns Li yes
and enable a flag

File Metadata

Mime Type
text/plain
Expires
Sat, Jun 13, 11:27 PM (11 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33936101
Default Alt Text
D57447.id179236.diff (949 B)

Event Timeline