patch 0018: /source on both sticks, both DVD-sized (4482 MiB); no UEFI stick test under QEMU
The 3 GB GPT image without /source fails the same way under OVMF from USB (test-smoke-usb-uefi-2026-11-09.log), so the size was never the cause. make test installs fully from the GPT stick through its BIOS path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
88a1dfdc58
commit
4e22a7aa9b
4 files changed
+51
-24
No files matched your search
@@ -98,6 +98,8 @@ 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)
|
||||
|
||||
**Gemessen 2026-11-09 abends (Kette `g`):** auch das 3-GB-GPT-Image ohne Quellen bootet unter QEMU/OVMF nicht vom USB (`test-smoke-usb-uefi-2026-11-09.log`, dasselbe `:-(`); die Größe war nie die Ursache. Daher: 0018 legt `/source` auf **beide** Images, beide 4482 MiB (DVD-Größe, Inhalt 3535 MiB); `make test` installiert voll vom GPT-Stick über BIOS. Kette `2026-11-09h` läuft; danach den GPT-Stick schreiben und auf dem MacBook installieren (das entscheidet UEFI).
|
||||
|
||||
**Stand 2026-11-09 (Nachprüfung durch Claude):** 0018 trägt `/source` nur auf dem **BIOS/MBR**-Image; das GPT/UEFI-Image
|
||||
ist unverändert. Die frühere Aussage "7-GB-FFS bricht efiboot" ist **nicht belegt**: ein UEFI-Stick wurde unter
|
||||
QEMU/OVMF nie gebootet, auch kein 3-GB-Image ohne Quellen (Lauf `e` wurde vor dem Test abgebrochen). Der Debug-Lauf
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# The source sets on the install image (make usb), so that a system installed
|
||||
# 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 DVD from `make isosrc' carries RELEASEDIR/source (CDSOURCE, distrib/common/
|
||||
@@ -10,12 +10,14 @@ common/bootimage/Makefile.bootimage: MD_IMGSPEC_DIRS, directories below WORKDIR
|
||||
(targets of IMGDIR_EXTRA) for which makespec writes makefs spec entries, the
|
||||
way it already does for RELEASEMACHINEDIR; without it makefs -xx stops with
|
||||
"missing specfile entry for work/source" (build/logs/x-usb-2026-11-09d.log).
|
||||
amd64/installimage-bios/Makefile: when `make sourcesets' has written
|
||||
RELEASEDIR/source/sets, that directory goes to /source on the MBR image and the
|
||||
image grows to 7168 MB.
|
||||
amd64/installimage/Makefile (GPT/UEFI) is not changed yet: a 7 GB GPT image did
|
||||
not boot under QEMU/OVMF from USB, but no 3 GB GPT image was ever booted that
|
||||
way for comparison (2026-11-09). Decided after that baseline.
|
||||
amd64/installimage/Makefile, amd64/installimage-bios/Makefile: when `make
|
||||
sourcesets' has written RELEASEDIR/source/sets, that directory goes to /source
|
||||
on the image, and the image is the size of a single-layer DVD, 4482 MiB
|
||||
(Konrad: one DVD, N CDs or one stick). Content measured 2026-11-09: 3535 MiB.
|
||||
|
||||
A GPT image does not boot from USB under QEMU/OVMF with or without /source
|
||||
(3 GB: build/logs/test-smoke-usb-uefi-2026-11-09.log, the same `:-(' as the 7 GB
|
||||
images); the same kind of image boots a MacBookPro8,1 (docs/PLATFORMS.md).
|
||||
|
||||
--- a/distrib/common/bootimage/Makefile.bootimage
|
||||
+++ b/distrib/common/bootimage/Makefile.bootimage
|
||||
@@ -44,9 +46,9 @@ amd64/installimage/Makefile (GPT/UEFI) is not changed yet: a 7 GB GPT image did
|
||||
@echo Creating rootfs...
|
||||
# XXX /var/spool/ftp/hidden is unreadable
|
||||
${CHMOD} +r ${WORKDIR}/var/spool/ftp/hidden
|
||||
--- a/distrib/amd64/installimage-bios/Makefile
|
||||
+++ b/distrib/amd64/installimage-bios/Makefile
|
||||
@@ -14,6 +14,17 @@
|
||||
--- a/distrib/amd64/installimage/Makefile
|
||||
+++ b/distrib/amd64/installimage/Makefile
|
||||
@@ -16,6 +16,18 @@
|
||||
INSTIMAGEMB= 3072
|
||||
.endif
|
||||
|
||||
@@ -54,11 +56,33 @@ amd64/installimage/Makefile (GPT/UEFI) is not changed yet: a 7 GB GPT image did
|
||||
+# sysinst looks for them when it runs from the stick ("ftp src prefix",
|
||||
+# sysinst main.c) and installs them in the simple mode (util.c,
|
||||
+# select_source_sets_present). MD_IMGSPEC_DIRS gives them makefs spec entries
|
||||
+# (common/bootimage/Makefile.bootimage). About 2.3 GB more.
|
||||
+# (common/bootimage/Makefile.bootimage). The image is the size of a
|
||||
+# single-layer DVD (4482 MiB): a stick carries what the DVD carries.
|
||||
+.if exists(${RELEASEDIR}/source/sets)
|
||||
+MD_IMGDIR_EXTRA+= ${RELEASEDIR}/source source
|
||||
+MD_IMGSPEC_DIRS+= source
|
||||
+INSTIMAGEMB= 7168
|
||||
+INSTIMAGEMB= 4482
|
||||
+.endif
|
||||
+
|
||||
EFIBOOT= ${WORKDIR}/usr/mdec/bootx64.efi
|
||||
EFIBOOT+= ${WORKDIR}/usr/mdec/bootia32.efi
|
||||
#EFIBOOT= ${.OBJDIR}/../../../sys/arch/i386/stand/efiboot/bootx64/bootx64.efi
|
||||
--- a/distrib/amd64/installimage-bios/Makefile
|
||||
+++ b/distrib/amd64/installimage-bios/Makefile
|
||||
@@ -14,6 +14,18 @@
|
||||
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 ("ftp src prefix",
|
||||
+# sysinst main.c) and installs them in the simple mode (util.c,
|
||||
+# select_source_sets_present). MD_IMGSPEC_DIRS gives them makefs spec entries
|
||||
+# (common/bootimage/Makefile.bootimage). The image is the size of a
|
||||
+# single-layer DVD (4482 MiB): a stick carries what the DVD carries.
|
||||
+.if exists(${RELEASEDIR}/source/sets)
|
||||
+MD_IMGDIR_EXTRA+= ${RELEASEDIR}/source source
|
||||
+MD_IMGSPEC_DIRS+= source
|
||||
+INSTIMAGEMB= 4482
|
||||
+.endif
|
||||
+
|
||||
USE_MBR= yes
|
||||
|
||||
@@ -79,11 +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` -- 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. The GPT/UEFI image is not changed yet: a 7 GB GPT image did not boot
|
||||
from USB under QEMU/OVMF, and no 3 GB GPT image had been booted that way to compare
|
||||
(2026-11-09; rewritten that day after a hand-edited version was malformed).
|
||||
- `0018-installimage-sources.patch` -- both install images (`make usb`) carry
|
||||
RELEASEDIR/source as /source when `make sourcesets` ran first, and are the size of a
|
||||
single-layer DVD (4482 MiB; content 3535 MiB); `MD_IMGSPEC_DIRS` in
|
||||
`bootimage/Makefile.bootimage` gives IMGDIR_EXTRA trees makefs spec entries. No
|
||||
GPT image boots from USB under QEMU/OVMF, with or without /source (2026-11-09).
|
||||
- `0019-motd-makronix.patch` -- `/etc/motd` says Makronix, based on NetBSD (found unrecorded in
|
||||
`src/` on 2026-11-09, recorded as found).
|
||||
+8
-6
@@ -7,7 +7,7 @@
|
||||
# What is tested, and why this is enough (Konrad, 2026-11-08):
|
||||
# 1. mediacheck.sh the CDs carry the DVD's files, byte for byte
|
||||
# 2. install-simple.sh -S the one full installation: the DVD with the sources
|
||||
# 2b. install-simple.sh -U the second full installation: the stick, UEFI, with the
|
||||
# 2b. install-simple.sh -U the second full installation: the GPT stick (BIOS path), with the
|
||||
# sources (patch 0018, 2026-11-09)
|
||||
# 3. install-simple.sh -B the smoke tests of the other media: they boot to the
|
||||
# disk menu, which offers the target and not the
|
||||
@@ -58,12 +58,14 @@ 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"
|
||||
# No UEFI test of a stick: NetBSD efiboot stops with ":-(" when OVMF boots it
|
||||
# from a USB disk, with or without /source, 3 GB or 7 GB
|
||||
# (build/logs/test-smoke-usb-uefi-2026-11-09.log); the same GPT image boots a
|
||||
# MacBookPro8,1 via EFI (docs/PLATFORMS.md). The UEFI path is tested on the CD.
|
||||
[ $QUICK = yes ] || run install-dvd "$TOP/tools/install-simple.sh" -S
|
||||
# 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"
|
||||
# The GPT stick (the image a Mac boots) carries /source (patch 0018): one full
|
||||
# installation from it, through its BIOS path, checks that sysinst installs them.
|
||||
[ $QUICK = yes ] || run install-usb "$TOP/tools/install-simple.sh" -f bios -U "$USB"
|
||||
|
||||
if [ -n "$failed" ]; then
|
||||
echo "FAILED:$failed"
|
||||
|
||||
Reference in new issue
Block a user