[WIP] Pkgbase 15.0#15
Conversation
|
This looks promising, thanks a lot! Looking forward to reports from testing. I've been using a custom outer base for years, recompiling it for every update, and it seems very promising to just replace this with a minimal pkgbase set :) When upgrading the script to FreeBSD 15.x, I would probably rename the previous version to |
|
|
||
| # called without argument: present drive info and exit | ||
| if [ -z $1 ]; then | ||
| dialog --msgbox \ |
There was a problem hiding this comment.
dialog simply not available in bsdinstall and seemingly replaced by bsddialog.
|
|
||
| if [ -z "$customdrives" ]; then | ||
| zpool create -o ashift=12 -m none -o altroot=/mnt $poolname /dev/gpt/inner.eli | ||
| zpool create -o ashift=12 -m none -o altroot=$INNER_CHROOT $poolname /dev/gpt/inner.eli |
There was a problem hiding this comment.
I took the liberty to refactor and use INNER_CHROOT consistently. But this may be a matter of taste, so happy to revert.
| fi | ||
| # if set, install debug symbols for selected packages | ||
| # This will install -dbg variants of installed package sets | ||
| install_debug="" |
There was a problem hiding this comment.
Maybe bloat. I'm personally not using this, unless someone finds it useful, I'm more than happy to remove.
| $pkg_cmd update | ||
|
|
||
| # Build package list - always install minimal, kernel, and pkg (if available) | ||
| local packages="FreeBSD-set-minimal FreeBSD-kernel-generic" |
There was a problem hiding this comment.
I think we want FreeBSD-kernel-generic only for outer. Will fix that when I get a chance.
| fi | ||
|
|
||
| # Not part of FreeBSD-set-minimal, but FreeBSD-set-optional | ||
| packages="$packages FreeBSD-ssh FreeBSD-bsdconfig" |
There was a problem hiding this comment.
Outer gets FreeBSD-set-minimal only (while inner gets FreeBSD-set-base which includes FreeBSD-set-optional), but we:
- want ssh in outer
- use bsdconfig later on, during installation, when we chroot in to outer to configure
We could also remove FreeBSD-bsdconfig after configuring to keep a lean outer.
|
Basic tests on a vm are successful. It'd be nice if people would test their use cases ( A couple of remarks toward pkgbase in 15.0 are:
Sharing here because outerbase, and this PR in particular, might need tweaking as we gain understanding/experience. While there is the |
| @@ -0,0 +1,32 @@ | |||
| # Development | |||
There was a problem hiding this comment.
Just some notes of mine for testing that I thought would be useful to others. Happy to remove them if we prefer to keep the repo tiny.
|
Thank you for your efforts so far, this looks promising, and I'm looking forward to seeing more :) |
First draft at adapting to RELEASE-15.0 and pkgbase. See #14
Tested in vm (will add instructions shortly).