metalog -> makefs is broken again in -HEAD

Sean Bruno sbruno at freebsd.org
Fri Aug 19 17:59:26 UTC 2016



On 08/19/16 11:38, Bryan Drewery wrote:
> On 8/19/16 10:35 AM, Sean Bruno wrote:
>>>
>>> As of r304288 I get none of this, tags is in the METALOG and makefs
>>> recognizes it.  What is the os rel of the host running makefs?
>>>
>>> I do have some duplicates in the METALOG but makefs is not warning about
>>> them or failing.  I'm guessing -D is being passed.
>>>
>>
>>
>> FreeBSD bruno 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r303327: Mon Jul 25
>> 20:54:25 MDT 2016     sbruno at bruno:/usr/obj/usr/src/sys/BRUNO  amd64
>>
>>
>> Yeah, its definitely passing -D ... at least I see it being passed to
>> install.
>>
>> + 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
>> + 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
>> /home/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/autosize
>> /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.
>> + echo '*** Target Done.'
>> *** Target Done.
>> + echo $'*** Target\t\t: fullfsimage'
>> *** Target              : fullfsimage
>> + ../freebsd-wifi-build/build/bin/build_fullfsimage malta
>> *** Running makefs to build image ..
>> *** from /home/sbruno/bsd/fbsd_head/../mfsroot/malta ..
>> /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta:54: warning:
>> duplicate definition of var
>>
> 
> Missing from this is an answer to any of my questions!
HA!  Well, I'm not quite awake as it is.  I'll try to do better.


> 
> What script is this?
From the FreeBSD wifi scripts (not in tree).

https://github.com/freebsd/freebsd-wifi-build

I believe the makefs command we're looking at is the one in
build/bin/build_fullfsimage




> 
> What flags are passed to makefs? (The -D above is to install). Passing
> -D to my makefs doesn't yield any error anyhow.

+ cp -f /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.mfsroot
/home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta
+ echo '*** Running makefs to build image .. '
*** Running makefs to build image ..
+ echo '*** from /home/sbruno/bsd/fbsd_head/../mfsroot/malta ..'
*** from /home/sbruno/bsd/fbsd_head/../mfsroot/malta ..
+ mkdir -p /home/sbruno/bsd/fbsd_head/../img/
+ cd /home/sbruno/bsd/fbsd_head/../mfsroot/malta
+ 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
/home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta:54: warning:
duplicate definition of var
/home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta:103: warning:
duplicate definition of usr
/home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta:848: warning:
duplicate definition of include
/home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta:1020: warning:
duplicate definition of lib
/home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta:1049: warning:
duplicate definition of usr

> 
> What makefs "version" / What OS rel is the host?

FreeBSD bruno 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r303327: Mon Jul 25
20:54:25 MDT 2016     sbruno at bruno:/usr/obj/usr/src/sys/BRUNO  amd64


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20160819/858d11ae/attachment.sig>


More information about the freebsd-arch mailing list