Page MenuHomeFreeBSD

bsdinstall: separate out dist selection in prep for pkgbase support
ClosedPublic

Authored by brd on Jan 26 2024, 5:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 1, 2:40 AM
Unknown Object (File)
Fri, Apr 26, 6:08 PM
Unknown Object (File)
Fri, Apr 26, 3:10 AM
Unknown Object (File)
Apr 6 2024, 8:08 PM
Unknown Object (File)
Apr 6 2024, 7:10 AM
Unknown Object (File)
Mar 4 2024, 3:57 PM
Unknown Object (File)
Mar 4 2024, 3:57 PM
Unknown Object (File)
Mar 4 2024, 3:57 PM
Subscribers

Details

Test Plan

Install in a VM over and over

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

brd requested review of this revision.Jan 26 2024, 5:50 PM

LGTM. I tested the new selectdists file in the my XFCE Terminal. I wrote some tip, you can consider or ignore.

Since I haven't used pkgbase yet, I would add somebody interested.

usr.sbin/bsdinstall/scripts/selectdists
33

Off-topic, just an idea we could discuss in the future. Here, in this file, we are importing thousand lines of code just to know the value of: $OSNAME and $DIALOG_TERMINAL_PASSTHRU_FD. We could create a file in bsdinstall (ex. bsdinstall/customization) or using an existing file (ex. bsdinstall/startbsdinstall) only for settings the installer (something like VAR=VALUE); OSNAME seems a perfect candidate to be on this file. This file could be an easier way to customize the installer for users/sysadmin (instead of looking for files in bsdconfig). Moreover all the variables in 1 file could a be an easy way to init/re-init them, so finally we can start to implement the "installer restart" feature.

48

These 2 lines f_dialog_title and f_dialog_backtitle are not used so they could be deleted. Indeed the following --checklist and --msgbox use explicitly their --backtitle and --title.

53

You did a change: bsddialog -> $DIALOG, so do you want to use Xdialog and/or lgpl-dialog? Anyway if you need Xdialog you could use the "bsdconfig API" to build this checklist as Xdialog is not able to calculate the correct autosizing at least on my laptop ("0 0 0 ..." following four lines).{F75635540}

73

bsddialog -> $DIALOG change like above. If you use $DIALOG, you could use the "bsdconfig api": to build f_dialog_msgbox, to get errors, autosizing, and so on; it creates a msgbox suitable for multi front-end.

This revision is now accepted and ready to land.Jan 28 2024, 5:04 PM
usr.sbin/bsdinstall/startbsdinstall
9

This seems pretty strange to do here. Why isn't it the default?

usr.sbin/bsdinstall/scripts/selectdists
33

That is a good point..

48

Will do in the next version

53

good point.. I'll switch it back, I was just trying to be more flexible but not sure it is worth it.

usr.sbin/bsdinstall/startbsdinstall
9

Because in the near future it won't be the default

usr.sbin/bsdinstall/startbsdinstall
9

Then change the default when the default should change? This doesn't belong here. Besides, I'd expect a transitional period where there's a menu asking which you'd like; pkgbase is coming along but it still seems like it isn't quite battle-tested enough to be the only way to install FreeBSD.

usr.sbin/bsdinstall/startbsdinstall
9

What I'd like to do is have a menu in the boot loader that sets a variable for experimental features, so that it can be available in snapshots but still somewhat hidden

This revision now requires review to proceed.Jan 30 2024, 7:18 PM
usr.sbin/bsdinstall/startbsdinstall
9

That seems reasonable. But that still doesn't make this line belong here.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 31 2024, 10:06 PM
This revision was automatically updated to reflect the committed changes.