CI: install the live ISO onto a blank disk and boot the installed system (#690)
* CI: install the live ISO onto a blank disk and boot the installed system
install-test (nextbsd/nextbsd#686) boots each live ISO in QEMU with a
blank 32 GB disk, runs the installer engine on it as Installer.app's
helper does (do-install.sh -d vtbd0), powers off, then boots the
installed disk alone and checks it. The file system is read off the
booted system: UFS installs are checked today, and the full ZFS layout
(pool NextBSD, the six datasets, bootfs, host ID, bectl) strictly as
soon as the ISO's engine installs ZFS. Both also check the login
account's home under /Local/Users, dsstatus and dspromote's
same-file-system rule; Desktop also checks WindowServer and loginwindow.
The harness pieces are assembled in tests/install-test.sh (no harness
change). The job runs on pushes, manual runs and PRs touching the
workflow, tests/ or build.sh, and is not in release's needs.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
[7 lines not shown]
CI: install the live ISO onto a blank disk and boot the installed system
install-test (nextbsd/nextbsd#686) boots each live ISO in QEMU with a
blank 32 GB disk, runs the installer engine on it as Installer.app's
helper does (do-install.sh -d vtbd0), powers off, then boots the
installed disk alone and checks it. The file system is read off the
booted system: UFS installs are checked today, and the full ZFS layout
(pool NextBSD, the six datasets, bootfs, host ID, bectl) strictly as
soon as the ISO's engine installs ZFS. Both also check the login
account's home under /Local/Users, dsstatus and dspromote's
same-file-system rule; Desktop also checks WindowServer and loginwindow.
The harness pieces are assembled in tests/install-test.sh (no harness
change). The job runs on pushes, manual runs and PRs touching the
workflow, tests/ or build.sh, and is not in release's needs.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
release: make sure each Preview release is public, as a visitor sees it (#689)
softprops/action-gh-release creates a release as a draft, uploads its
files, then clears the draft flag. In run 45109117441 it logged
"Finalizing release... Release ready" for continuous-desktop but left it
a draft: only the repo owner could see its files, visitors and the tag
page saw just the source archives, and the public API returned 404.
continuous-server, in the same job, was published normally. The job
still reported success.
After each publish step, clear the draft flag ourselves (harmless when
the release is already public), then fetch the release from the public
API without a token and require all four files (two ISOs, the Pi image,
SHA256SUMS), retrying for up to a minute. A release that isn't public
now fails the job instead of passing silently.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
release: make sure each Preview release is public, as a visitor sees it
softprops/action-gh-release creates a release as a draft, uploads its
files, then clears the draft flag. In run 45109117441 it logged
"Finalizing release... Release ready" for continuous-desktop but left it
a draft: only the repo owner could see its files, visitors and the tag
page saw just the source archives, and the public API returned 404.
continuous-server, in the same job, was published normally. The job
still reported success.
After each publish step, clear the draft flag ourselves (harmless when
the release is already public), then fetch the release from the public
API without a token and require all four files (two ISOs, the Pi image,
SHA256SUMS), retrying for up to a minute. A release that isn't public
now fails the job instead of passing silently.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
build.sh: retry the Pi device-tree downloads (#688)
Run 45103400295's Server rpi5 image failed because
raw.githubusercontent.com answered one of the eight BCM2712 device-tree
downloads (bcm2712d0-rpi-5-b.dtb) with "Service Unavailable"; build.sh
made a single attempt per file, so one transient error failed the job.
The Desktop rpi5 job fetched the same files a minute earlier without
trouble.
Add fetch_retry: up to five tries with a growing wait (5, 10, 15, 20 s),
writing OUT.part and renaming it only on success so a failed try never
leaves a half-written file that a later build would treat as cached. Use
it for the device trees; the existing check that each file starts with
the flattened-device-tree magic stays.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
build.sh: retry the Pi device-tree downloads
Run 45103400295's Server rpi5 image failed because
raw.githubusercontent.com answered one of the eight BCM2712 device-tree
downloads (bcm2712d0-rpi-5-b.dtb) with "Service Unavailable"; build.sh
made a single attempt per file, so one transient error failed the job.
The Desktop rpi5 job fetched the same files a minute earlier without
trouble.
Add fetch_retry: up to five tries with a growing wait (5, 10, 15, 20 s),
writing OUT.part and renaming it only on success so a failed try never
leaves a half-written file that a later build would treat as cached. Use
it for the device trees; the existing check that each file starts with
the flattened-device-tree magic stays.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Desktop Preview: build and publish continuous-desktop beside continuous-server (#684)
* Build and publish the Desktop Preview beside the Server Preview
Every image lane now builds two variants from the same packages: Server
(NextBSD-server, as before) and Desktop (NextBSD-desktop: the server plus
GNUstep and the desktop). The build, rpi5, img-test and iso-test jobs gain
a variant matrix dimension; build.sh names its files after the variant
(NextBSD-<Server|Desktop>-<arch>-<stamp>.*, NextBSD-<variant>-rpi5-<stamp>
.img.zip) and checks that a Desktop image enables WindowServer and
loginwindow at boot. The release job publishes continuous-server as before
and continuous-desktop ("Desktop Preview (continuous)"), each with its
ISOs, its Pi image and its own SHA256SUMS; the build fails if an ISO or
the Pi image would exceed GitHub's 2 GiB per-asset limit.
The Desktop boot tests still reach the serial login prompt, then
tests/desktop-check.exp.inc checks that launchd loaded both jobs and
started the WindowServer, and reports whether it found a display.
[31 lines not shown]
Desktop check: type short lines, one sentinel each
The combined wait-and-dump line (about 430 characters) lost its tail at
the same point on all four Desktop boots, so the shell never ran its
last command. Split it into four commands of at most ~160 characters,
each waiting for its own sentinel, and shorten the launchd job check.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Desktop boot test: require the WindowServer ready and loginwindow connected; README
The first CI boots showed the WindowServer comes up on QEMU's virtio-gpu
on both arches, disk image and live ISO (Virtual-1 at 1280x800, pixman
since Mesa offers only llvmpipe) and loginwindow connects to it, so the
Desktop check now gates on both instead of only reporting the display.
README: the Desktop Preview beside the Server Preview (what each is,
the file names, the releases table), how to see the desktop in QEMU,
and `pkg install NextBSD-desktop` plus a reboot to turn a Server install
into a Desktop one.
Part of nextbsd/nextbsd#678.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Build and publish the Desktop Preview beside the Server Preview
Every image lane now builds two variants from the same packages: Server
(NextBSD-server, as before) and Desktop (NextBSD-desktop: the server plus
GNUstep and the desktop). The build, rpi5, img-test and iso-test jobs gain
a variant matrix dimension; build.sh names its files after the variant
(NextBSD-<Server|Desktop>-<arch>-<stamp>.*, NextBSD-<variant>-rpi5-<stamp>
.img.zip) and checks that a Desktop image enables WindowServer and
loginwindow at boot. The release job publishes continuous-server as before
and continuous-desktop ("Desktop Preview (continuous)"), each with its
ISOs, its Pi image and its own SHA256SUMS; the build fails if an ISO or
the Pi image would exceed GitHub's 2 GiB per-asset limit.
The Desktop boot tests still reach the serial login prompt, then
tests/desktop-check.exp.inc checks that launchd loaded both jobs and
started the WindowServer, and reports whether it found a display.
Part of nextbsd/nextbsd#678 (E47, nextbsd/nextbsd#671).
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Images install NextBSD-server, the meta-package that replaces NextBSD-everything (#683)
* Images install NextBSD-server, the meta-package that replaces NextBSD-everything [skip ci]
build.sh installs $NB_META (NextBSD-server by default, NextBSD-desktop for
the Desktop images later) and falls back to NextBSD-everything when the
NextBSD repo was published before nextbsd-pkg made NextBSD-server. The
version still comes from the installed SystemVersion.plist, which
NextBSD-server now owns. The workflow, pkglist.txt and the README name
NextBSD-server.
nextbsd/nextbsd#680 (E47, #671).
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
* Run the PR checks (the previous commit skipped CI)
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
[2 lines not shown]
Server Preview: publish the ISOs as plain .iso; keep the Pi image zipped (#682)
* Release description and README: builds are started by hand, not on every push
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
* Server Preview: publish the ISOs as plain .iso; keep the Pi image zipped
The live ISO's root is already compressed, so zipping saved ~13% (arm64:
233 MB raw, 203 MB zipped) and made users unzip before booting or
writing it. The release step unzips the ISOs; the build, its artifacts
and the boot tests are unchanged. The Raspberry Pi image stays .img.zip:
raw it's 2.4 GB of mostly empty filesystem, over GitHub's 2 GB per-file
limit, against ~190 MB zipped, and the usual Pi writers take .img.zip
directly. The README's quick start loses its unzip step.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Server Preview: publish the ISOs as plain .iso; keep the Pi image zipped
The live ISO's root is already compressed, so zipping saved ~13% (arm64:
233 MB raw, 203 MB zipped) and made users unzip before booting or
writing it. The release step unzips the ISOs; the build, its artifacts
and the boot tests are unchanged. The Raspberry Pi image stays .img.zip:
raw it's 2.4 GB of mostly empty filesystem, over GitHub's 2 GB per-file
limit, against ~190 MB zipped, and the usual Pi writers take .img.zip
directly. The README's quick start loses its unzip step.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Publish the Server Preview to continuous-server: ISOs, the Pi image, SHA256SUMS (#679)
The rolling release becomes continuous-server and holds only what people
install: the amd64 and arm64 live ISOs and the Raspberry Pi 5 image,
named NextBSD-Server-<arch|rpi5>-<version>, with one SHA256SUMS. The
amd64/arm64 .img stay workflow artifacts for the boot test; a tests-only
run boots the last successful build's artifact instead of a release
asset. The README's quick start boots the live ISO in QEMU.
The old continuous release is left in place; it's deleted once
continuous-server has published.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Publish the Server Preview to continuous-server: ISOs, the Pi image, SHA256SUMS
The rolling release becomes continuous-server and holds only what people
install: the amd64 and arm64 live ISOs and the Raspberry Pi 5 image,
named NextBSD-Server-<arch|rpi5>-<version>, with one SHA256SUMS. The
amd64/arm64 .img stay workflow artifacts for the boot test; a tests-only
run boots the last successful build's artifact instead of a release
asset. The README's quick start boots the live ISO in QEMU.
The old continuous release is left in place; it's deleted once
continuous-server has published.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
live ISO: hand launchd /dev/null stdio, not the console (#621)
The live ISO's /init wires stdout/stderr to /dev/console for its own
[init] progress and error lines, then execs launchd. launchd only opens
/dev/null for closed fds, so PID 1 and every job without StandardOutPath
or StandardErrorPath inherited the console, and their stderr reached the
screen on a normal boot.
Redirect stdio to /dev/null on the exec of launchd, matching a disk boot
where the kernel starts launchd with no fds open. /init's own output and
failure paths before that point still go to the console; the exec-failed
message now writes to /dev/console explicitly. Verbose boots keep
launchd's console logging, which launchd opens itself under -v.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
live ISO: hand launchd /dev/null stdio, not the console
The live ISO's /init wires stdout/stderr to /dev/console for its own
[init] progress and error lines, then execs launchd. launchd only opens
/dev/null for closed fds, so PID 1 and every job without StandardOutPath
or StandardErrorPath inherited the console, and their stderr reached the
screen on a normal boot.
Redirect stdio to /dev/null on the exec of launchd, matching a disk boot
where the kernel starts launchd with no fds open. /init's own output and
failure paths before that point still go to the console; the exec-failed
message now writes to /dev/console explicitly. Verbose boots keep
launchd's console logging, which launchd opens itself under -v.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
build: take the NextBSD version from SystemVersion.plist (#612)
nextbsd-version, /etc/os-release and the image names now come from the
installed NextBSD-everything's /System/Library/CoreServices/SystemVersion.plist,
which nextbsd-pkg writes (nextbsd/nextbsd#536), instead of the image's
IMG_DATE:
- /bin/nextbsd-version reads the plist each time it runs and prints
"NextBSD 27.0.0 (<build>)", so it follows pkg upgrade.
- /etc/os-release gets NAME, VERSION, VERSION_ID, BUILD_ID and
PRETTY_NAME from the plist. nextbsd-fetch, the login banner, prints
PRETTY_NAME, so the banner shows "NextBSD 27.0.0 (<build>)". On an
installed system NextBSD-everything's Lua post-install script writes
the same lines on every upgrade, so os-release is not left at the
version the image was built with.
- The disk image, ISO and rpi5 image are named
NextBSD-<arch>-27.0.0-<build>. The workflow reads the stamp off the
file build.sh wrote, and the continuous release notes name the
version and build.
[7 lines not shown]
build: take the NextBSD version from SystemVersion.plist
nextbsd-version, /etc/os-release and the image names now come from the
installed NextBSD-everything's /System/Library/CoreServices/SystemVersion.plist,
which nextbsd-pkg writes (nextbsd/nextbsd#536), instead of the image's
IMG_DATE:
- /bin/nextbsd-version reads the plist each time it runs and prints
"NextBSD 27.0.0 (<build>)", so it follows pkg upgrade.
- /etc/os-release gets NAME, VERSION, VERSION_ID, BUILD_ID and
PRETTY_NAME from the plist. nextbsd-fetch, the login banner, prints
PRETTY_NAME, so the banner shows "NextBSD 27.0.0 (<build>)". On an
installed system NextBSD-everything's Lua post-install script writes
the same lines on every upgrade, so os-release is not left at the
version the image was built with.
- The disk image, ISO and rpi5 image are named
NextBSD-<arch>-27.0.0-<build>. The workflow reads the stamp off the
file build.sh wrote, and the continuous release notes name the
version and build.
[8 lines not shown]
build: install NextBSD packages with NextBSD's pkg-static (#609)
The NextBSD repository now carries the NextBSD ABI (NextBSD:27:<arch>,
OSVERSION 2700000), and the build VM's stock pkg refuses it ("wrong
architecture: NextBSD:27:aarch64 instead of FreeBSD:15:aarch64").
Install NextBSD-everything, the pkglist.txt packages and the residue
clean with nextbsd-contrib's pkg-static, the same tool nextbsd-pkg uses,
with ABI=NextBSD:27:<arch> (aarch64 on arm64) and OSVERSION=2700000. The
workflow downloads the amd64 pkg-static from nextbsd-contrib's continuous
release for both build jobs (amd64/arm64 and rpi5); a hand run fetches
it. The FreeBSD:15 ABI pin and the VM's uname -K OSVERSION are gone, so
the image's package database carries the ABI its own pkg computes.
Refs nextbsd/nextbsd-kernel#376
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
build: install NextBSD packages with NextBSD's pkg-static
The NextBSD repository now carries the NextBSD ABI (NextBSD:27:<arch>,
OSVERSION 2700000), and the build VM's stock pkg refuses it ("wrong
architecture: NextBSD:27:aarch64 instead of FreeBSD:15:aarch64").
Install NextBSD-everything, the pkglist.txt packages and the residue
clean with nextbsd-contrib's pkg-static, the same tool nextbsd-pkg uses,
with ABI=NextBSD:27:<arch> (aarch64 on arm64) and OSVERSION=2700000. The
workflow downloads the amd64 pkg-static from nextbsd-contrib's continuous
release for both build jobs (amd64/arm64 and rpi5); a hand run fetches
it. The FreeBSD:15 ABI pin and the VM's uname -K OSVERSION are gone, so
the image's package database carries the ABI its own pkg computes.
Refs nextbsd/nextbsd-kernel#376
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
build: stop shipping FreeBSD's pkg repo config (#606)
NextBSD no longer ships or configures FreeBSD's package repo
(nextbsd/nextbsd-kernel#376). build.sh no longer writes
/usr/local/etc/pkg/repos/FreeBSD.conf and no longer creates
/usr/local/etc/pkg/repos; the image's only repo is NextBSD's own, from
nextbsd-overlays.
Nothing in the image build resolved from pkg.FreeBSD.org:
NextBSD-everything installs through the isolated NextBSD-only REPOS_DIR,
and pkglist.txt is empty. The pkglist.txt step now installs from that
same NextBSD-only repo config instead of the FreeBSD one, so it can never
reach pkg.FreeBSD.org. Comments in build.sh and pkglist.txt are updated
to match.
Refs nextbsd/nextbsd-kernel#376
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
build: stop shipping FreeBSD's pkg repo config
NextBSD no longer ships or configures FreeBSD's package repo
(nextbsd/nextbsd-kernel#376). build.sh no longer writes
/usr/local/etc/pkg/repos/FreeBSD.conf and no longer creates
/usr/local/etc/pkg/repos; the image's only repo is NextBSD's own, from
nextbsd-overlays.
Nothing in the image build resolved from pkg.FreeBSD.org:
NextBSD-everything installs through the isolated NextBSD-only REPOS_DIR,
and pkglist.txt is empty. The pkglist.txt step now installs from that
same NextBSD-only repo config instead of the FreeBSD one, so it can never
reach pkg.FreeBSD.org. Comments in build.sh and pkglist.txt are updated
to match.
Refs nextbsd/nextbsd-kernel#376
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
build: pin pkg's ABI per arch in the image's pkg.conf
NextBSD is moving __FreeBSD_version/kern.osreldate to 2700000 (NextBSD
kernel 27.0.0). pkg reads its ABI from /usr/bin/uname's ELF note, so
once the world is built at 27 it would ask repositories for
FreeBSD:27:<arch>. NextBSD's own packages (built by nextbsd-pkg on a
FreeBSD 15.1 VM) and pkg.FreeBSD.org/latest are FreeBSD:15:<arch>, and
NextBSD keeps the releng/15.1 kernel and libc API.
Step 5 now appends ABI = "FreeBSD:15:amd64" (or "FreeBSD:15:aarch64")
and OSVERSION = 1501000, an unquoted integer as pkg 2.8.4 requires, to
the overlay-seeded /private/etc/pkg.conf, and fails if the overlay
already sets them or the pin is missing afterwards. No ALTABI. At
1501000 this matches what pkg detects today.
Refs nextbsd/nextbsd-kernel#376
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Fetch freebsd-kexts on arm64 too (#592)
nextbsd-kernel-extensions now publishes freebsd-kexts-<arch>.tar.gz for
both arches (autofs.kext is on arm64 too, nextbsd-kernel-extensions#7).
Fetch it per arch instead of on amd64 only, failing if it is missing.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Fetch freebsd-kexts on arm64 too
nextbsd-kernel-extensions now publishes freebsd-kexts-<arch>.tar.gz for
both arches (autofs.kext is on arm64 too, nextbsd-kernel-extensions#7).
Fetch it per arch instead of on amd64 only, failing if it is missing.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Take the FreeBSD kexts from nextbsd-kernel-extensions (#591)
IntelWiFi and IntelEthernet now build in the new nextbsd-kernel-extensions
and ship as freebsd-kexts-amd64.tar.gz (nextbsd/nextbsd#554); fetch that
instead of the two Intel tarballs from the graphics repo.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>