Bug 262440 - Order of startup scripts in /etc/rc.d leads to problems with readonly root
Summary: Order of startup scripts in /etc/rc.d leads to problems with readonly root
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 13.0-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-rc (Nobody)
URL:
Keywords: needs-patch, regression
Depends on:
Blocks:
 
Reported: 2022-03-09 09:35 UTC by nkoch
Modified: 2022-08-01 16:48 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nkoch 2022-03-09 09:35:07 UTC
I am having a system running with readonly root, where tmp is a symlink to /var/tmp which is recreated at every boot with rc.conf settings

varmfs="YES"
populate_var="YES"

This works with 12.1 where var comes before tmp.

Under 13.0 tmp comes immediately after mountcritlocal and before var,
so I end up in /bin/sh with every boot.

Obvious solution would be to add var as a requirement for tmp, but
I don't know if that would lead to some other problems.
Comment 1 nkoch 2022-03-09 13:09:40 UTC
/etc/rc.d/gbde, which comes verearly tries to create a temp file under /tmp
Comment 2 nkoch 2022-03-09 13:11:21 UTC
No, gbde is ok. It uses /tmp only when stopping.