From owner-freebsd-current@freebsd.org Wed Jun 12 06:21:47 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 730D315A845D for ; Wed, 12 Jun 2019 06:21:47 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 174778F549; Wed, 12 Jun 2019 06:21:47 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from ivaldir.etoilebsd.net (etoilebsd.net [178.32.217.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id D43409EE0; Wed, 12 Jun 2019 06:21:46 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by ivaldir.etoilebsd.net (Postfix, from userid 1001) id BD15CB2A41; Wed, 12 Jun 2019 08:21:45 +0200 (CEST) Date: Wed, 12 Jun 2019 08:21:45 +0200 From: Baptiste Daroussin To: Johannes Lundberg Cc: jbwlists@hilltopgroup.com, freebsd-current Subject: Re: pkg: Cannot open /dev/null:No such file or directory Message-ID: <20190612062145.ssvzsstb7rc3ubdm@ivaldir.net> References: <20190604073209.4e42a0eb@freyja> <20190604054409.4anei2ljzimqc75m@ivaldir.net> <935a44aa7587cdc07fadc2e33caed1f7@hilltopgroup.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gfkfnwlwfwv6nu24" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Rspamd-Queue-Id: 174778F549 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.99)[-0.993,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jun 2019 06:21:47 -0000 --gfkfnwlwfwv6nu24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 11, 2019 at 11:52:31AM -0700, Johannes Lundberg wrote: > Hi >=20 > This is probably overkill but I've attached a diff that show my patches > to image.sh. It's just a hack so far to make it do what I want and not > meant as general purpose. Use the changes you need for your application. >=20 > Changes (only meant to work for building usb images on amd64 and i386) >=20 > - mount devfs so pkg will work properly > - add "install packages from official repo" option so you won't have to > build your own packages for each jail > - downloaded packages from official repo is cached locally to avoid > excessive downloads > - hack for i386 so packages are installed properly > - increase swap space to allow for kernel core dumps (for usb image) > - execute post-install script "overlay.sh" in the jail if provided in > the overlay folder >=20 > Bapt: Maybe you'll find some of these changes useful? :) >=20 The first I already committed days ago in poudriere, just I should have add= ed it as a patch to the poudriere version in ports, I will do it asap. As for other improvements, sure they sounds like useful, would be happy to review them if you make pull requests out of them! Thanks a lot, Bapt --gfkfnwlwfwv6nu24 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAl0AmfMACgkQY4mL3PG3 PloUUg/6A3+jkc0imUEwQeVcG1h/2/AjRc2lrTweiovuKBs75lthUxSyBht3fdpw QroKQWFKV3LXWsfPIQa4cuCoTmqoF8GntZZjnUQeUwNBuXvTKrNP3H8lVkx9jNYl pODH3bve32jcPzvjSJIiDKOGLntVbPE/A08BYHXrFN3MprOt9kJ20pZ2T/RzWJ1V LHwqVbXNkG1o6N7lQZL9ty7bgT7hILA9H5hK2ikZQydk1pHTK2e2/H7pZGqT7D5f /CDwagdTUqaZXcNiQTQzyyalpUntieXZbwNYKJ/bZ0ltir9lx86L1gX3JcEksK+j qXpsv/8eL5lzs/T4g3950e4dV53KR3x8CnorNKHTb/QbdN6qZoQes5DC3co+PnAV GaRfbrguiEUflgknoxkl2nGKMJX4eejVyxXk659Sgex3rdj5ajwlgidpS6GN0d6r nxiHgDD3hew2XJlb8ZoH1AZKHO47IngXvxaE0FBAz5kzepG+CWwpiHPVDMVj5afi vlRsvkewvM9vgtkoPiQ9h1kmIBp3HvhjiMpYVctgaXb5GDOPalojUor00h0FD1Hu ddJ+kJJqzFy6gpNZAonNxh+smoDsa2P+VRQg8QocBTXMBNuSBynMfjmuEZ3WxihX lYByzkIbwDT5H06uEPXTyd2o65qTzeP2ZBxqxeFjiIYSjTta4TE= =wnyA -----END PGP SIGNATURE----- --gfkfnwlwfwv6nu24--