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)
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
Unknown Object (File)
Sep 26 2024, 6:59 AM
Unknown Object (File)
Sep 23 2024, 12:44 PM
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 Not Applicable
Unit
Tests Not Applicable

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