Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2016 12:54:11 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Sean Bruno <sbruno@freebsd.org>, Adrian Chadd <adrian.chadd@gmail.com>
Cc:        "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Subject:   Re: metalog -> makefs is broken again in -HEAD
Message-ID:  <8478b8aa-b8cf-7383-9923-249fced3dac3@FreeBSD.org>
In-Reply-To: <1836ae28-b510-06dd-b83f-d08060cf87ac@freebsd.org>
References:  <CAJ-VmoknWRf0bkfksp61pamKsLky_b=indGogS%2BJtFrFa%2BXaFw@mail.gmail.com> <78463d96-4dc3-b9a1-4793-05d6c6a76537@freebsd.org> <CAJ-Vmok1weKRsS4F_QWJP5-h%2BTBjAqQE2=PxSFStjh_VZqPF6w@mail.gmail.com> <b3a107fd-80d5-20aa-1f2b-ff60a75b8f94@freebsd.org> <8b012527-e76c-060d-be5b-547deca5cb07@FreeBSD.org> <01069203-3566-12f7-993b-10e8e43be1ac@freebsd.org> <0dbec794-9dc2-4e72-6114-1e4b0968dae5@FreeBSD.org> <60a8da58-dbd5-dd26-6047-745bcf6a21f4@freebsd.org> <894b4841-166c-422f-9fe8-50ed261d76bb@FreeBSD.org> <1836ae28-b510-06dd-b83f-d08060cf87ac@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--8kV7lfAxSVEhm4nmKCWBlPtWJpc65wHqD
Content-Type: multipart/mixed; boundary="h1DrQPhEIUJUWiCJiE14CMwRn7SF5I59i"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: Sean Bruno <sbruno@freebsd.org>, Adrian Chadd <adrian.chadd@gmail.com>
Cc: "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Message-ID: <8478b8aa-b8cf-7383-9923-249fced3dac3@FreeBSD.org>
Subject: Re: metalog -> makefs is broken again in -HEAD
References: <CAJ-VmoknWRf0bkfksp61pamKsLky_b=indGogS+JtFrFa+XaFw@mail.gmail.com>
 <78463d96-4dc3-b9a1-4793-05d6c6a76537@freebsd.org>
 <CAJ-Vmok1weKRsS4F_QWJP5-h+TBjAqQE2=PxSFStjh_VZqPF6w@mail.gmail.com>
 <b3a107fd-80d5-20aa-1f2b-ff60a75b8f94@freebsd.org>
 <8b012527-e76c-060d-be5b-547deca5cb07@FreeBSD.org>
 <01069203-3566-12f7-993b-10e8e43be1ac@freebsd.org>
 <0dbec794-9dc2-4e72-6114-1e4b0968dae5@FreeBSD.org>
 <60a8da58-dbd5-dd26-6047-745bcf6a21f4@freebsd.org>
 <894b4841-166c-422f-9fe8-50ed261d76bb@FreeBSD.org>
 <1836ae28-b510-06dd-b83f-d08060cf87ac@freebsd.org>
In-Reply-To: <1836ae28-b510-06dd-b83f-d08060cf87ac@freebsd.org>

--h1DrQPhEIUJUWiCJiE14CMwRn7SF5I59i
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 8/19/16 12:48 PM, Sean Bruno wrote:
>=20
>=20
> 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=3D2' -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=
=2E
>>
>> 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=3D2' -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.
>>
>=20
> Indeed.  I've fixed this up in the freebsd wifi scripts and fired off a=

> pull request for it.
>=20
> Has "install" lost the ability to do relative directories completely?
>=20
> install: open /home/sbruno/bsd/fbsd_head/../mfsroot/METALOG.malta.tmp:
> No such file or directory
>=20
=2E..

> 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
>=20
>=20
> --- full script output ---
> + X_BASEDIR=3D../freebsd-wifi-build/build/bin/../
> + INSTALL_PROG=3D'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=3D"YES"'
> + echo 'autosize_rootfs=3D"/dev/ada0"'
> + echo 'sshd_enable=3D"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
>=20


--=20
Regards,
Bryan Drewery


--h1DrQPhEIUJUWiCJiE14CMwRn7SF5I59i--

--8kV7lfAxSVEhm4nmKCWBlPtWJpc65wHqD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJXt2PkAAoJEDXXcbtuRpfPPLcH/2mKoIsN3MaXBADM+RPGnHA4
K26VVVFWmy3IGhDAPN6IeNNUQTLgykbBGx1SXXoHzTc90wGELaKaXo8dZqWYln9s
/b4dP+c5qWE+5J+ySH5k9DhK0VyzcwDt75UOz8E7Lo36yervLI3oZ1yywqF/zBeA
OrSffWpOdCLcp8FdMvV34Z5WDWfj6W3wPrNE/Y7Yy3gJKjDJnYxu+fI7omF4BiSX
yYrJq/U98/cB1Wuc13OQi8JYxqFZsK99Th+UWdNvQeDdEZMxHZvBAR+cHfMaqSpK
ZDQjINZA2GAaOzgkf8BnhIqFOavlzD7tU0mBc+TZOVYBHB86azaZ52+YUf7H4E4=
=TLLp
-----END PGP SIGNATURE-----

--8kV7lfAxSVEhm4nmKCWBlPtWJpc65wHqD--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8478b8aa-b8cf-7383-9923-249fced3dac3>