From owner-freebsd-current@freebsd.org Wed Jun 12 00:22:45 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 0F2FE15CAF5C for ; Wed, 12 Jun 2019 00:22:45 +0000 (UTC) (envelope-from jbwlists@hilltopgroup.com) Received: from equinox.hilltopgroup.com (equinox.hilltopgroup.com [204.109.63.175]) by mx1.freebsd.org (Postfix) with ESMTP id 5305986CF1; Wed, 12 Jun 2019 00:22:43 +0000 (UTC) (envelope-from jbwlists@hilltopgroup.com) Received: from mail.relativity.hilltopgroup.com (unknown [104.185.205.155]) by equinox.hilltopgroup.com (Postfix) with ESMTP id 72F7B37B4C2; Tue, 11 Jun 2019 20:22:41 -0400 (EDT) Received: from [192.168.8.200] (unknown [104.185.205.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jbwlists@hilltopgroup.com) by mail.relativity.hilltopgroup.com (Postfix) with ESMTPSA id 7596F11703; Tue, 11 Jun 2019 20:22:41 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hilltopgroup.com; s=mail; t=1560298961; bh=da6RX47vTusnzv1Mx47e8rpBRcc1sDFG5KAHuJIOPzU=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=YExCtLyjT/bGeDm6cqZ4fx3b1VVQfrxsieBZXG9bt13To+ukWh1IaMksJvMS2kMLG QyXKwcipoJUd7DCtj71245t/nIG1WqAUXjN+6ifxqKUqcD9NIpAEiMK8waSsQkMftN qc/H77tpTik/1luPiCuZQfYiHalk3jiRGu6N0Nxo= Subject: Re: pkg: Cannot open /dev/null:No such file or directory To: Johannes Lundberg , Baptiste Daroussin Cc: freebsd-current References: <20190604073209.4e42a0eb@freyja> <20190604054409.4anei2ljzimqc75m@ivaldir.net> <935a44aa7587cdc07fadc2e33caed1f7@hilltopgroup.com> From: Joseph Ward Message-ID: Date: Tue, 11 Jun 2019 20:22:40 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 5305986CF1 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hilltopgroup.com header.s=mail header.b=YExCtLyj; spf=pass (mx1.freebsd.org: domain of jbwlists@hilltopgroup.com designates 204.109.63.175 as permitted sender) smtp.mailfrom=jbwlists@hilltopgroup.com X-Spamd-Result: default: False [-4.50 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[hilltopgroup.com:s=mail]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+a]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[hilltopgroup.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: equinox.hilltopgroup.com]; DKIM_TRACE(0.00)[hilltopgroup.com:+]; NEURAL_HAM_SHORT(-0.96)[-0.959,0]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.13)[ipnet: 204.109.60.0/22(-1.72), asn: 36236(-3.88), country: US(-0.06)]; ASN(0.00)[asn:36236, ipnet:204.109.60.0/22, country:US]; MID_RHS_MATCH_FROM(0.00)[] 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 00:22:45 -0000 Thank you!  I only added the mount line, but it seemed to work. On 2019-06-11 14:52, Johannes Lundberg wrote: > Hi > > 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. > > Changes (only meant to work for building usb images on amd64 and i386) > > - 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 > > Bapt: Maybe you'll find some of these changes useful? :) > > /Johannes > > On 6/11/19 8:52 AM, jbwlists@hilltopgroup.com wrote: >> I'm having the same issue with poudriere image; could you please let >> me know what you did to fix it?  I'm assuming the image.sh you're >> referring to is /usr/local/share/poudriere/image.sh, but I'm not sure >> where the change would need to be made. >> >> Thanks in advance, >> Joseph >> >> >> On 2019-06-04 13:02, Johannes Lundberg wrote: >>> On 6/3/19 10:44 PM, Baptiste Daroussin wrote: >>>> On Tue, Jun 04, 2019 at 07:32:16AM +0200, O. Hartmann wrote: >>>>> Hello List, >>>>> >>>>> lately I ran into a serious problem installing packages in a nanoBSD >>>>> environment, in which the package repository server is "remotely" >>>>> on site. The >>>>> issue as documented below occurs on both 12-STABLE r348529 and >>>>> CURRENT r348600 >>>>> and must have been introduced shortly, since the last known good >>>>> installation >>>>> with the environment of ours was on 21st May 2019. >>>>> >>>>> As far as I know,, the package installation is performed via >>>>> "chroot'ed" >>>>> environment and somehow /dev/null is out of a sudden not accessible >>>>> anymore >>>>> while pkg tries to delegate some output to /dev/null. >>>>> >>>>> What happened here? >>>>> >>>>> Kind regards and thanks in advance, >>>>> >>>>> oh >>>>> >>>>> [...] >>>>> All repositories are up to date. >>>>> The following 10 package(s) will be affected (of 0 checked): >>>>> >>>>> New packages to be INSTALLED: >>>>>         python3: 3_3 [zeit4] >>>>>         sudo: 1.8.27_1 [zeit4] >>>>>         devcpu-data: 1.22 [zeit4] >>>>>         python36: 3.6.8_2 [zeit4] >>>>>         readline: 8.0.0 [zeit4] >>>>>         indexinfo: 0.3.1 [zeit4] >>>>>         libffi: 3.2.1_3 [zeit4] >>>>>         gettext-runtime: 0.19.8.1_2 [zeit4] >>>>>         openldap-sasl-client: 2.4.47 [zeit4] >>>>>         cyrus-sasl: 2.1.27 [zeit4] >>>>> >>>>> Number of packages to be installed: 10 >>>>> >>>> What is new is that pkg is using /dev/null as input when running >>>> script? this is >>>> new since pkg 1.11 . Somehow this does not seems to be avaalaible in >>>> your >>>> environement. >>> Hi >>> >>> Same things applies to poudriere-image. I had to add a mount devfs >>> command to the image.sh script. >>> >>>> Best regards, >>>> Bapt >>> _______________________________________________ >>> freebsd-current@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>> To unsubscribe, send any mail to >>> "freebsd-current-unsubscribe@freebsd.org"