Page MenuHomeFreeBSD

release: support configuration partition for auto install
Needs ReviewPublic

Authored by aokblast on Mar 1 2023, 1:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 17, 2:46 AM
Unknown Object (File)
Wed, Apr 16, 9:18 PM
Unknown Object (File)
Mon, Apr 14, 12:12 PM
Unknown Object (File)
Mon, Apr 14, 6:52 AM
Unknown Object (File)
Mon, Apr 14, 1:28 AM
Unknown Object (File)
Mon, Apr 14, 1:22 AM
Unknown Object (File)
Mon, Apr 14, 1:21 AM
Unknown Object (File)
Feb 26 2025, 4:01 AM

Details

Reviewers
lwhsu

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 63556
Build 60440: arc lint + arc unit

Event Timeline

This comment was removed by aokblast.

fix: recover shebang in make-memstick.sh

jrtc27 added inline comments.
etc/bsdinstall.example
1 ↗(On Diff #118125)

Do we normally put examples in etc (that aren't comments in the actual file)? I would expect them to be in usr/share.

8 ↗(On Diff #118125)

Fix

release/Makefile
211

METALOG must be kept in sync so -DNO_ROOT builds keep working fully

211

Don't add trailing whitespace

212

Don't add trailing whitespace

release/amd64/make-memstick.sh
74

Does -B little make sense for FAT? I thought it had a fixed endianness?

74

Why force it to FAT16?

74

-D isn't needed when you have no METALOG

81

Space before \

usr.sbin/bsdinstall/startbsdinstall
50

Use a loop, don't copy paste big chunks of code unnecessarily

Comment from @hrs: how about just using ESP partition?

Rebase to main and do some minor fix

aokblast added inline comments.
release/amd64/make-memstick.sh
74

Do we need FAT32? I think it just a simple configuration file.

aokblast retitled this revision from draft: add configuration base to release: support configuration partition for auto install.Wed, Apr 16, 5:29 PM
release/Makefile
208

Why does this exist? What purpose does it serve? People are not routinely opening up their ISO to go and read a file on it. And if this is really an important example to have it should be installed by installworld like any other file, and into /usr/share/examples, not /usr/share.

209

I don't love chucking a directory named like this into the root, but I don't have a good suggestion at the moment for the right path to use

217

This is currently amd64-only, and only for memstick. The directory should only be created when the corresponding partition is also added, and probably the corresponding partition should be created in more cases too.

release/amd64/make-memstick.sh
74

FAT12 vs FAT16 vs FAT32 is supposed to be a function of the size of the filesystem. There is a formula in the specification for how to pick which to use. You should therefore leave it up to makefs to automatically pick the right one, rather than force it to use a format that's potentially invalid (even if it can technically otherwise work).

77

Why the duplication? Just use an expansion for the -D argument that is either -D or empty.

release/amd64/mkisoimages.sh
92 ↗(On Diff #153736)

??

share/bsdinstall/bsdinstall.example
2–9

Gone from missing the trailing newline to having an extra blank line from what I can tell?

targets/pseudo/userland/share/Makefile.depend
5 ↗(On Diff #153736)

share/bsdinstall/Makefile doesn't exist, you've just dropped a file into the directory that release/ is using, so I don't think this is right.

usr.sbin/bsdinstall/startbsdinstall
51

for ...; do

52

This indentation is broken. If you're trying to avoid indenting the whole block then invert the condition and continue. Or split out the loop to find the file from the code that actually runs it if present.

52

config_dir yet -f?

58

$?

aokblast marked 8 inline comments as done.

Minor fixes

Remove redundant release.conf

release/Makefile
208

Don't we need this so that bsdinstall.example will be exist in BASEBITSDIR?

217

Is it fine to add file to artifact in make-memstick.sh? I thought it is a little bit strange. Or should I place the mkdir in other place?