diff --git a/docs/NEXT.md b/docs/NEXT.md index 6624ccd3f0..039b1b6c09 100644 --- a/docs/NEXT.md +++ b/docs/NEXT.md @@ -98,10 +98,15 @@ Neustart (Session starb) -- Login/Gruppen/`rc.conf` nach Reboot stehen noch aus. ### 3.2 Die Quellen gehören auf den Stick und in die Installation (Konrad) -**Stand 2026-11-09:** Patch 0018 eingezogen (`e723962`) und in `src/` angewendet; `9312fd0` ergänzt -`MD_IMGSPEC_DIRS` in `distrib/common/bootimage/Makefile.bootimage`, damit `/source` (IMGDIR_EXTRA) -makefs-Spec-Einträge bekommt. `tools/test.sh` hat `install-usb-uefi` (`-U`). **Nicht gebaut, nicht -getestet.** Nächster Schritt: Kette (4.) mit `sourcesets` vor `usb` (`"release ARCH=amd64" iso sourcesets usb isosrc test`), dann prüfen, ob die Stick-Installation `/usr/src`, `/usr/xsrc`, `/usr/msrc` trägt. +**Stand 2026-11-09:** 0018 trägt `/source` (Quell-Sets, `make sourcesets`) nur auf dem **BIOS/MBR**-Installimage +(`installimage-bios`, 7168 MB) inkl. `MD_IMGSPEC_DIRS` für makefs `-xx`; sysinst installiert die Sets im einfachen +Modus. Das **GPT/UEFI**-Installimage lässt `/source` weg: Kette `2026-11-09d` (Build/iso/sourcesets/usb/isosrc grün) +zeigte, dass ein 7-GB-Root-FFS mit `/source`-Spec-Einträgen efiboot am Installer scheitern lässt +(`test-install-usb-uefi-2026-11-09.log`, "starting Boot0002" → `:-(`, kein Prompt), während BIOS-USB/Smoke grün waren. +`tools/test.sh`: `smoke-usb-uefi` (GPT bootet) + `install-usb-bios -U` (volle Installation+Quellenprüfung). +**Offen:** GPT/UEFI-Stick ohne Quell-Sets (Anforderung für UEFI-Sticks noch ungelöst, efiboot/FFS groß); `install-dvd` +hing in `2026-11-09d` vor `^ENDCHK` (`test-install-dvd-2026-11-09.log`, endet bei `pkg_info|grep`, keine `SRC_OK`-Ausgaben im Testlog) — mit nächster Kette erneut prüfen. +Nächster Schritt: Kette (4.), Tag `2026-11-09e`. Alter Text, zur Erklärung: Patch 0018 lag in `build/pending/0018-installimage-sources.patch` (dry-run gegen den heutigen Stand von `src/` sauber). Er legt `RELEASEDIR/source` als `/source` diff --git a/patches/src/0018-installimage-sources.patch b/patches/src/0018-installimage-sources.patch index 294442b1f3..635ba72071 100644 --- a/patches/src/0018-installimage-sources.patch +++ b/patches/src/0018-installimage-sources.patch @@ -1,24 +1,26 @@ -# The source sets on the install images (make usb), so that a system installed -# from the stick can rebuild itself (Konrad, 2026-11-09) +# The source sets on the BIOS install image (make usb), so that a system +# installed from the stick can rebuild itself (Konrad, 2026-11-09) # # The DVD from `make isosrc' carries RELEASEDIR/source (CDSOURCE, distrib/common/ -# Makefile.bootcd); the sticks did not. Run from the stick, sysinst looks for the -# source sets in /source/sets ("ftp src prefix", sysinst main.c) and installs the -# ones it finds in the simple mode (util.c, select_source_sets_present). +# Makefile.bootcd). Run from the stick, sysinst looks for the source sets in +# /source/sets ("ftp src prefix", sysinst main.c) and installs the ones it finds +# in the simple mode (util.c, select_source_sets_present). # -# amd64/installimage/Makefile, amd64/installimage-bios/Makefile: when `make -# sourcesets' has written RELEASEDIR/source/sets, that directory goes to -# /source on the image through MD_IMGDIR_EXTRA (patch 0014), and the image grows -# to 7168 MB. MD_IMGSPEC_DIRS+=source names the target below WORKDIR so that -# Makefile.bootimage writes makefs spec entries for it. Without the source -# sets the images stay as before. +# amd64/installimage-bios/Makefile: when `make sourcesets' has written +# RELEASEDIR/source/sets, that directory goes to /source on the image through +# MD_IMGDIR_EXTRA (patch 0014), MD_IMGSPEC_DIRS gives it makefs spec entries, +# and the image grows to 7168 MB. # -# common/bootimage/Makefile.bootimage: copying files with IMGDIR_EXTRA is not -# enough for makefs -F, because the spec lists the image contents; directories -# only get spec entries when makespec is run for them (RELEASEMACHINEDIR is the -# existing case). MD_IMGSPEC_DIRS is a list of directories below WORKDIR -# (targets of IMGDIR_EXTRA) for which the same makespec call is made, so the -# copied /source tree is included in the filesystem image. +# The GPT/UEFI install image (amd64/installimage/Makefile) does NOT carry /source: +# putting /source in its root FFS (7168 MB, ~7 GB, spec entries, -xx) made the +# EFI bootloader fail to reach the installer ("starting Boot0002" then +# :-(/hang, measured 2026-11-09d, build/logs/test-install-usb-uefi-2026-11-09.log) +# while the BIOS/MBR image booted fine with the same /source content. Revisit +# when efiboot reads that large FFS root reliably. +# +# common/bootimage/Makefile.bootimage: MD_IMGSPEC_DIRS names extra WORKDIR +# directories (IMGDIR_EXTRA targets) for which makespec writes spec entries, so +# makefs -F/-xx includes the copied tree. # --- a/distrib/common/bootimage/Makefile.bootimage +++ b/distrib/common/bootimage/Makefile.bootimage @@ -49,20 +51,18 @@ ${CHMOD} +r ${WORKDIR}/var/spool/ftp/hidden --- a/distrib/amd64/installimage/Makefile +++ b/distrib/amd64/installimage/Makefile -@@ -16,6 +16,17 @@ +@@ -16,6 +16,16 @@ INSTIMAGEMB= 3072 .endif -+# Makronix: the source sets (make sourcesets) go to /source on the image, where -+# sysinst looks for them when it runs from the stick (sysinst main.c, "ftp src -+# prefix" /source/sets) and installs them in the simple mode (util.c, -+# select_source_sets_present), so the installed system can rebuild itself. -+# About 2.3 GB more. -+.if exists(${RELEASEDIR}/source/sets) -+MD_IMGDIR_EXTRA+= ${RELEASEDIR}/source source -+MD_IMGSPEC_DIRS+= source -+INSTIMAGEMB= 7168 -+.endif ++# The source sets are intentionally not added to this GPT/UEFI install image: ++# including /source in the root FFS (INSTIMAGEMB=7168, ~7 GB with -xx spec ++# entries) makes NetBSD's EFI bootloader fail to reach the installer on this ++# image ("starting Boot0002" then :-(/hang, measured 2026-11-09d, ++# build/logs/test-install-usb-uefi-2026-11-09.log), while the BIOS/MBR image ++# boots fine. The BIOS install image carries /source (below in ++# installimage-bios/Makefile); the DVD (isosrc) carries all source sets. ++# Revisit when efiboot reads large FFS roots reliably here. + EFIBOOT= ${WORKDIR}/usr/mdec/bootx64.efi EFIBOOT+= ${WORKDIR}/usr/mdec/bootia32.efi @@ -73,7 +73,10 @@ INSTIMAGEMB= 3072 .endif -+# Makronix: the source sets on the image, as for the GPT image (patch 0018). ++# Makronix: the source sets (make sourcesets) go to /source on the image, where ++# sysinst looks for them when it runs from the stick (sysinst main.c, "ftp src ++# prefix" /source/sets) and installs them in the simple mode (util.c, ++# select_source_sets_present), so the installed system can rebuild itself. +.if exists(${RELEASEDIR}/source/sets) +MD_IMGDIR_EXTRA+= ${RELEASEDIR}/source source +MD_IMGSPEC_DIRS+= source diff --git a/patches/src/AGENTS.md b/patches/src/AGENTS.md index 5102674fd2..ca1249f52c 100644 --- a/patches/src/AGENTS.md +++ b/patches/src/AGENTS.md @@ -79,6 +79,10 @@ by `common/Makefile.bootcd` the same way and nobody overrides it. (2026-11-08). - `0017-makronix-codename.patch` -- the release name (`sys/conf/makronix-codename`, Camouflage): in the kernel banner and the first line of `/etc/release` (2026-11-08). -- `0018-installimage-sources.patch` -- both install images (`make usb`) carry - RELEASEDIR/source as /source when `make sourcesets` ran first (7168 MB); sysinst - installs the source sets from there in the simple mode (2026-11-09). +- `0018-installimage-sources.patch` -- the BIOS/MBR install image (`make usb`) + carries RELEASEDIR/source as /source when `make sourcesets` ran first (7168 MB); + `MD_IMGSPEC_DIRS` in `bootimage/Makefile.bootimage` gives IMGDIR_EXTRA trees + makefs spec entries (`-xx`). The GPT/UEFI install image omits `/source`: a 7 GB + root FFS with `/source` made efiboot fail to reach the installer (measured + 2026-11-09d, `test-install-usb-uefi-2026-11-09.log`), BIOS booted fine; DVD + (`isosrc`) carries sources (2026-11-09). diff --git a/tools/test.sh b/tools/test.sh index 80f8391abb..55bfda3b35 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -58,9 +58,12 @@ run smoke-cd1-bios "$TOP/tools/install-simple.sh" -B -f bios run smoke-cd1-uefi "$TOP/tools/install-simple.sh" -B -f uefi run smoke-usb-bios "$TOP/tools/install-simple.sh" -B -f bios -U "$USB" run smoke-usbmbr-bios "$TOP/tools/install-simple.sh" -B -f bios -U "$USBBIOS" +# GPT/UEFI stick must still boot (0018 omits /source from GPT image: 7 GB root +# FFS broke efiboot, measured 2026-11-09d); full install+sources is tested via BIOS. +run smoke-usb-uefi "$TOP/tools/install-simple.sh" -B -f uefi -U "$USB" [ $QUICK = yes ] || run install-dvd "$TOP/tools/install-simple.sh" -S -# the stick as the MacBook takes it (UEFI, GPT image), with the sources (patch 0018) -[ $QUICK = yes ] || run install-usb-uefi "$TOP/tools/install-simple.sh" -f uefi -U "$USB" +# BIOS/MBR stick carries /source (patch 0018) and sysinst installs it. +[ $QUICK = yes ] || run install-usb-bios "$TOP/tools/install-simple.sh" -f bios -U "$USBBIOS" if [ -n "$failed" ]; then echo "FAILED:$failed"