Page MenuHomeFreeBSD

rc: Allow the removal of firstboot_sentinel on read-only file systems
ClosedPublic

Authored by jlduran on Feb 4 2022, 1:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 1:46 PM
Unknown Object (File)
Wed, Nov 13, 9:48 PM
Unknown Object (File)
Thu, Nov 7, 3:02 AM
Unknown Object (File)
Oct 4 2024, 12:52 AM
Unknown Object (File)
Oct 1 2024, 8:32 PM
Unknown Object (File)
Sep 30 2024, 3:36 AM
Unknown Object (File)
Sep 28 2024, 11:04 PM
Unknown Object (File)
Sep 28 2024, 11:02 AM
Subscribers

Details

Summary

NanoBSD or, more generally, systems with root_rw_mount="NO" are not able to remove the firstboot_sentinel file, typically /firstboot, because the logic in /etc/rc is currently inverted.

When checkyesno root_rw_mount tests on a read-only file system, the return is 1, hence avoiding the option to mount the system read-write.

Restore the ability to remove the firstboot_sentinel file on read-only mounted file systems.

This change was introduced in 40adda8665bbcda1bad7e3a6a3c1031027faf39a, and partially fixed in 1ce07411fae8986f3acc293c9fb9ebee5211056a.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

jlduran retitled this revision from rc: Allow removal of firstboot_sentinel on a ro FS to rc: Allow the removal of firstboot_sentinel on read-only file systems.
This revision is now accepted and ready to land.Feb 10 2022, 7:42 PM