NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: install/56132: build.sh target install-image fails in update-mode
The following reply was made to PR install/56132; it has been noted by GNATS.
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: paul%whooppee.com@localhost
Cc: gnats-bugs%netbsd.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: install/56132: build.sh target install-image fails in update-mode
Date: Thu, 29 Apr 2021 07:41:30 +0900
> > @@ -499,7 +499,7 @@ ${WORKFAT}: ${TARGETFS} ${FATFILES}
> > ${FATMAKEFSOPTIONS} \
> > ${WORKFAT} ${WORKFATDIR}
> >
> > -${WORKMBR}:
> > +${WORKMBR}: ${TARGETFS}
> > .if ${USE_GPT} != "no"
> > @echo creating GPT header and partition entries...
> > ${RM} -f ${WORKMBR}
>
> That doesn't seem to work. Looks like the new depedency causes a loop.
>
> ...
> /build/netbsd-local/tools/x86_64/amd64/bin/nbsed -e "s/@@MACHINE@@/amd64/" -e "s/@@VERSION@@/9.99.82/" < /build/netbsd-local/src/distrib/amd64/installimage/boot.cfg.in > boot.cfg
> nbmake[4]: Graph cycles through work.mbr <<<<<<<<<<<<<<<<<
> create EFI system partition...
> /build/netbsd-local/tools/x86_64/amd64/bin/x86_64--netbsd-install -c -m 0644 work/usr/mdec/bootx64.efi work.efidir/EFI/boot/`basename work/usr/mdec/bootx64.efi`
> x86_64--netbsd-install: work/usr/mdec/bootx64.efi: stat: No such file or directory
Hmm. This seems caused by:
> .if ${USE_GPT} != "no"
> BOOTDISK_UUID=`${TOOL_GPT} ${GPT_TIMESSTAMP} ${WORKMBR} show -i 2 | ${TOOL_AWK} '/^GUID/ {print $$2}'`
> SWAPDISK_UUID=`${TOOL_GPT} ${GPT_TIMESSTAMP} ${WORKMBR} show -i 3 | ${TOOL_AWK} '/^GUID/ {print $$2}'`
> .endif
and
> .if ${USE_GPT} != "no"
> ${WORKFSTAB}: ${WORKMBR}
> .endif
and
> ${TARGETFS}: prepare_md_post ${WORKFSTAB}
${WORKFSTAB} needs to depend on ${WORKMBR} image file to get
a UUID created by ${TOOL_GPT} with ${GPT_TIMESTAMP}? Umm.
(note GPT/UEFI part was not implemented by me)
I wonder if we can calculate the UUID from ${GPT_TIMESTAMP}
without an actual image, but anyway we need some dummy targets
that checks and removes ${WORKMBR} if its size is different
from ${IMAGESECTORS}?
Needs make(1) guru..
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index