Page MenuHomeFreeBSD

bsdinstall: add pkgbase prompt to jail script
ClosedPublic

Authored by ifreund_freebsdfoundation.org on Apr 14 2025, 10:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 14, 10:33 PM
Unknown Object (File)
Fri, May 9, 4:15 AM
Unknown Object (File)
Tue, May 6, 5:30 PM
Unknown Object (File)
Tue, May 6, 7:53 AM
Unknown Object (File)
Tue, May 6, 4:23 AM
Unknown Object (File)
Mon, May 5, 8:53 AM
Unknown Object (File)
Sun, May 4, 1:09 PM
Unknown Object (File)
Sun, May 4, 7:29 AM
Subscribers

Diff Detail

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

Event Timeline

Use bsdinstall pkgbase --no-kernel, reword prompt

I wonder if instead of non_pkgbase you want something like distbase which installs the base system using distribution tarballs? The dialog here would then ask something more like: "Would you like to install the base system using traditional distribution tarballs or packages (experimental)?"

usr.sbin/bsdinstall/scripts/jail
138

Maybe "Packages" instead of "PkgBase"? I think "PkgBase" will not age well. It's more like "Tarballs (Traditional)" vs "Packages (Experimental)" IMO

usr.sbin/bsdinstall/scripts/jail
56

Continuing the naming theme, I think "dist sets" are a decent name for traditional/tarball/non-pkgbase installation artifacts. Maybe install_dist_sets

usr.sbin/bsdinstall/scripts/jail
56

I was thinking distbase vs pkgbase, but that could also work.

134–139

This logic is also too convoluted. I would rather you do something like:

basemode=dist
if [ "$nonInteractive" != "YES" ]; then
    bsddialog ...
    if [ $? -eq 1 ]; then
         basemode=pkg
    fi
fi

case "$basemode" in
    dist)
         distbase
         ;;
    pkg)
         bsdinstall pkgbase --no-kernel
         ;;
esac

Or some such.

Tweak wording based on jhb review, simplify logic

Thanks for the review @jhb!

usr.sbin/bsdinstall/scripts/jail
134–139

This should be better now and also matches the control flow in auto more closely with the introduction of a PKGBASE variable.

138

I think your suggested changes to the wording of this prompt are great, I was not happy with "PkgBase" but didn't consider "Packages" as an alternative.

I've gone with simply "Traditional" for the other option as both "Tarballs" and "Dist Sets" feel too jargony to me. Let me know what you think.

A couple of whitespace nits (which I can just fix and roll in) but otherwise lgtm

usr.sbin/bsdinstall/scripts/jail
73

Looks like misaligned whitespace here

77

And here, these should be tab-tab-tab-space-space-space-space I expect

136

And here, tab-space-space-space-space

This revision was not accepted when it landed; it landed in state Needs Review.Apr 29 2025, 12:35 AM
This revision was automatically updated to reflect the committed changes.