Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159352767
D57447.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
949 B
Referenced Files
None
Subscribers
None
D57447.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 14, 4:50 AM (13 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33936101
Default Alt Text
D57447.diff (949 B)
Attached To
Mode
D57447: rc: Bail if /dev/null is not a device
Attached
Detach File
Event Timeline
Log In to Comment