Page MenuHomeFreeBSD

bsdinstall: add pkgbase prompt to jail script
Needs ReviewPublic

Authored by ifreund_freebsdfoundation.org on Mon, Apr 14, 10:59 AM.
Tags
None
Referenced Files
F115284295: D49823.id153722.diff
Tue, Apr 22, 5:53 AM
F115283420: D49823.id153722.diff
Tue, Apr 22, 5:39 AM
F115255691: D49823.diff
Mon, Apr 21, 10:34 PM
Unknown Object (File)
Sun, Apr 20, 11:47 PM
Unknown Object (File)
Sun, Apr 20, 11:39 PM
Unknown Object (File)
Sun, Apr 20, 11:14 PM
Unknown Object (File)
Thu, Apr 17, 7:22 AM
Unknown Object (File)
Thu, Apr 17, 3:39 AM
Subscribers

Details

Reviewers
emaste
bapt
khorben_defora.org
Group Reviewers
pkgbase

Diff Detail

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

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
137

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.

133–138

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
133–138

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

137

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.