Page MenuHomeFreeBSD

nanobsd: Remove chflags call in install_world()
Needs ReviewPublic

Authored by senguptaangshuman17_gmail.com on Wed, Aug 19, 10:19 AM.
Tags
None
Referenced Files
F167939500: D58957.id184322.diff
Tue, Aug 25, 12:57 PM
F167882408: D58957.id184598.diff
Tue, Aug 25, 5:49 AM
F167882203: D58957.id184598.diff
Tue, Aug 25, 5:47 AM
Unknown Object (File)
Mon, Aug 24, 5:21 PM
Unknown Object (File)
Mon, Aug 24, 3:05 PM
Unknown Object (File)
Mon, Aug 24, 12:49 PM
Unknown Object (File)
Mon, Aug 24, 8:28 AM
Unknown Object (File)
Mon, Aug 24, 5:42 AM
Subscribers

Details

Reviewers
jlduran
jrm
ashish
Summary

clean_world() wipes NANO_WORLDDIR before install_world() runs, and
installworld itself never sets schg on installed files. Nothing
ever needs clearing, so the chflags -R noschg is dead code on both
privileged and unprivileged builds.

Sponsored by: Google LLC (GSoC 2026)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76118
Build 73001: arc lint + arc unit

Event Timeline

I would recommend squashing the majority of this commit with D58931, as the changes are mostly NFC (the leftovers).

tools/tools/nanobsd/defaults.sh
1017–1018

This is a "functional" change and should be submitted separately.

Isolate functional change (disable chflags in install_world) and normalize comments

senguptaangshuman17_gmail.com retitled this revision from nanobsd: Cleanup common functions to nanobsd: Disable chflags call in install_world().Thu, Aug 20, 7:04 PM

Commit message needs a why.

senguptaangshuman17_gmail.com retitled this revision from nanobsd: Disable chflags call in install_world() to nanobsd: Remove chflags call in install_world().Tue, Aug 25, 6:13 AM