metalog -> makefs is broken again in -HEAD
Bryan Drewery
bdrewery at FreeBSD.org
Fri Aug 19 19:54:19 UTC 2016
On 8/19/16 12:48 PM, Sean Bruno wrote:
>
>
> On 08/19/16 12:04, Bryan Drewery wrote:
>> On 8/19/16 10:59 AM, Sean Bruno wrote:
>>> + makefs -D -t ffs -M 4294967296 -B be -o 'version=2' -f 1048576
>>> /home/sbruno/bsd/fbsd_head/../img//fullroot-malta.img
>>> /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta
>>
>> Here's the problem. The METALOG is a mtree file, not a makefs manifest.
>>
>> It needs to pass it as -F and use '.' or full path for the directory.
>>
>> Such as:
>>
>> makefs -D -t ffs -M 4294967296 -B be -o 'version=2' -f 1048576
>> -F /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta
>> /home/sbruno/bsd/fbsd_head/../img//fullroot-malta.img
>> .
>>
>> I get the million errors with the quoted form and none with the
>> suggested form.
>>
>
> Indeed. I've fixed this up in the freebsd wifi scripts and fired off a
> pull request for it.
>
> Has "install" lost the ability to do relative directories completely?
>
> install: open /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.tmp:
> No such file or directory
>
...
> ls -l /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.tmp
> -rw-r--r-- 1 sbruno sbruno 203 Aug 19 13:30
> /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.tmp
>
>
> --- full script output ---
> + X_BASEDIR=../freebsd-wifi-build/build/bin/../
> + INSTALL_PROG='install -U -M
> /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.tmp -D
> /home/sbruno/bsd/fbsd_head/../mfsroot/malta'
> + echo '*** Deleting old file system..'
> *** Deleting old file system..
> + install -U -M /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.tmp
> -D /home/sbruno/bsd/fbsd_head/../mfsroot/malta -d
> /home/sbruno/bsd/fbsd_head/../mfsroot/malta
> install: open /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.tmp:
> No such file or directory
My guess is that at this point in the install the directory for
METALOG.malta.tmp is likely missing and not created yet. In the failing
command -d is being used to create mfsroot/malta. -d creates parents,
so perhaps mfsroot/ is not present yet either.
> + chflags -R noschg /home/sbruno/bsd/fbsd_head/../mfsroot/malta
> + rm -rf /home/sbruno/bsd/fbsd_head/../mfsroot/malta
> + rm -rf /home/sbruno/bsd/fbsd_head/../tmp/malta
> + echo '*** Creating new filesystem...'
> *** Creating new filesystem...
> + mkdir -p /home/sbruno/bsd/fbsd_head/../mfsroot/malta
> + mkdir -p /home/sbruno/bsd/fbsd_head/../tmp/malta
> + rsync -arH /home/sbruno/bsd/fbsd_head/../root/mips/
> /home/sbruno/bsd/fbsd_head/../mfsroot/malta
> + echo '/dev/ada0 / ufs rw 1 1'
> + install -U -M /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.tmp
> -D /home/sbruno/bsd/fbsd_head/../mfsroot/malta -m 644 -o root -g wheel
> /home/sbruno/bsd/fbsd_head/../tmp/malta/fstab /ho
> me/sbruno/bsd/fbsd_head/../mfsroot/malta/etc/
> + echo 'autosize_enable="YES"'
> + echo 'autosize_rootfs="/dev/ada0"'
> + echo 'sshd_enable="YES"'
> + install -U -M /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.tmp
> -D /home/sbruno/bsd/fbsd_head/../mfsroot/malta -m 644 -o root -g wheel
> /home/sbruno/bsd/fbsd_head/../tmp/malta/rc.conf /
> home/sbruno/bsd/fbsd_head/../mfsroot/malta/etc/
> + install -U -M /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.tmp
> -D /home/sbruno/bsd/fbsd_head/../mfsroot/malta -m 755 -o root -g wheel
> ../freebsd-wifi-build/build/bin/..//files.full/au
> tosize /home/sbruno/bsd/fbsd_head/../mfsroot/malta/etc/rc.d/
> + ../freebsd-wifi-build/build/bin/filter.pl
> /home/sbruno/bsd/fbsd_head/../root/mips/METALOG
> /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.tmp
> /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.mfsroot
> + echo '**** Done.'
> **** Done.
> *** Target Done.
> *** Target : fullfsimage
> *** Running makefs to build image ..
> *** from /home/sbruno/bsd/fbsd_head/../mfsroot/malta ..
> makefs: ./usr/local/bin: missing directory in specification
> makefs: failed at line 26660 of the specification
>
--
Regards,
Bryan Drewery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20160819/2e9795c5/attachment.sig>
More information about the freebsd-arch
mailing list