From owner-freebsd-arch@freebsd.org Fri Aug 19 19:48:17 2016 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87F72BBFD4A for ; Fri, 19 Aug 2016 19:48:17 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 59955123D; Fri, 19 Aug 2016 19:48:16 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.0.6] (75-161-70-238.albq.qwest.net [75.161.70.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 769341928CE; Fri, 19 Aug 2016 19:48:15 +0000 (UTC) Subject: Re: metalog -> makefs is broken again in -HEAD To: Bryan Drewery , Adrian Chadd References: <78463d96-4dc3-b9a1-4793-05d6c6a76537@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> Cc: "freebsd-arch@freebsd.org" From: Sean Bruno Message-ID: <1836ae28-b510-06dd-b83f-d08060cf87ac@freebsd.org> Date: Fri, 19 Aug 2016 13:48:20 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <894b4841-166c-422f-9fe8-50ed261d76bb@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9xnjXj5N70wud16TGhr01iAPA0RU6evrm" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 19:48:17 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9xnjXj5N70wud16TGhr01iAPA0RU6evrm Content-Type: multipart/mixed; boundary="Nf73onD87bDxJE5SRj5fgFgCgSbtQ73TD" From: Sean Bruno To: Bryan Drewery , Adrian Chadd Cc: "freebsd-arch@freebsd.org" Message-ID: <1836ae28-b510-06dd-b83f-d08060cf87ac@freebsd.org> Subject: Re: metalog -> makefs is broken again in -HEAD References: <78463d96-4dc3-b9a1-4793-05d6c6a76537@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> In-Reply-To: <894b4841-166c-422f-9fe8-50ed261d76bb@FreeBSD.org> --Nf73onD87bDxJE5SRj5fgFgCgSbtQ73TD Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 >=20 > Here's the problem. The METALOG is a mtree file, not a makefs manifest.= >=20 > It needs to pass it as -F and use '.' or full path for the directory. >=20 > Such as: >=20 > 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 > . >=20 > 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. 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=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 + 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 =2E./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 --Nf73onD87bDxJE5SRj5fgFgCgSbtQ73TD-- --9xnjXj5N70wud16TGhr01iAPA0RU6evrm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJXt2KEXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5ktNQH/2iI8XYJD5befpwMeCM1ZyAA p82z723WiPMdR35CRHznimcaAfGLqLp738PIrDjjU5tTf8vlzfvhHuy/+AB8X4tI 2p/rw4GKa/BMWpAYu2+E3kKjN4G/udCv93tiFxwj6GVU8ws7pJWqA/zDru+34G41 VNnIDEdjKeI+Ijj+36gPsKFn5Ez/YS3aUz+L1TvD0rY4u7eUMQr7GCe3xG1/vsRs yWxc5zW5RipEJbf1XkAQcYNI+orprh853BrI8T2+gTKg1f5mk439pmL4UWjnghy2 4NgxCLLe1br5r0f4DofMr8sNos+DxHmvpNr4fcyrOizzrDoLi8gO9RMT60At+XA= =rhXr -----END PGP SIGNATURE----- --9xnjXj5N70wud16TGhr01iAPA0RU6evrm--