From owner-freebsd-current@freebsd.org Sat Aug 25 09:38:49 2018 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 748AA1084273 for ; Sat, 25 Aug 2018 09:38:49 +0000 (UTC) (envelope-from srs0=xebg=li=sigsegv.be=kristof@codepro.be) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E725990F7F; Sat, 25 Aug 2018 09:38:48 +0000 (UTC) (envelope-from srs0=xebg=li=sigsegv.be=kristof@codepro.be) Received: from [10.0.2.164] (ptr-8rgnodwguwcl7l2ksvq.18120a2.ip6.access.telenet.be [IPv6:2a02:1811:240b:b802:c9f5:de0e:83d2:3536]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 7A3FA401C4; Sat, 25 Aug 2018 11:38:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigsegv.be; s=mail; t=1535189926; bh=2hwrukxtwG/pxgqkc+C6uztOFbmr49Hxfrv3xkn0BgA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=a1YMW5/QePsF7zg3oHCa8z69uRKHfBkAE06pXiCnmFdXmXSGMPHXbdfgK8dpOhCnj 8jD09EjM7ZBMICHDU5/m8XIy98dPIv1hln08sVEAPZt7VrOKY6uQ47wHf+0nehgLYx s2Qxmh3GmSsRfJzJlXWi5HmDiYIIP3md0L+PkneU= From: "Kristof Provost" To: "O. Hartmann" Cc: "FreeBSD CURRENT" , "Brad Davis" Subject: Re: [CURRENT, ezjail] rc, rc.subr and other rc. scripts gone: ezjail fails on 12-ALPHA Date: Sat, 25 Aug 2018 11:38:40 +0200 X-Mailer: MailMate (2.0BETAr6116) Message-ID: <3C0C5CB5-1A0F-49DD-A3FE-ADA5B00BAD48@sigsegv.be> In-Reply-To: <20180825090704.69e17a6e@thor.intern.walstatt.dynvpn.de> References: <20180825090704.69e17a6e@thor.intern.walstatt.dynvpn.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Sat, 25 Aug 2018 09:38:49 -0000 On 25 Aug 2018, at 9:06, O. Hartmann wrote: > I'm using ezjail-admin from ports (most recent tree, up to date as of > today, at Revision: > 478001, FreeBSD is FreeBSD 12.0-ALPHA3 #455 r338309: Sat Aug 25 > 07:10:45 CEST 2018 amd64, > the jails sources are at revision 338309). > > Updates of the jail's base is taken from /usr/src or another path (in > case of another > path, ezjail-admin update -i requires the setting of evn > MAKEOBJDIRPREFIX= some/place). > > Updating jails and creating new jails has worked for a while, but > recently, newly created > jails fail to start because the initial start routine bringing up the > jail dumps an error > about /bin/sh /etc/rc missing! > > Investigating a complete fresh ezajil setup (on ZFS) reveals, that > neither in fulljail, > newjail or basejail any of the initial rc-srcipts rc or rc.subr is > present any more! I > stopped looking for other missing scripts since rc and rc.subr are > crucial and essential > to the system, so I guess there has been introduced a sort of bug > recently in the way > FreeBSD 12 is going to handle/keep/store rc scripts in the source tree > or their > installation and ezjai didn't catch up so far. > > I already filed a PR (see Bug 230822), but I'm unsure whether this is > a "real" bug or I > did just miss some important changes and I didn't catch up. > Yep, it’s a real problem. I ran into it myself a few weeks ago. Many of the scripts and files in sys/etc have been moved, for pkg base. This, combined with ezjail doing the install wrong breaks your jails. Brad posted a patch to the ezjail mailing list. I can’t immediately find an archive linke, but this should fix it: --- ezjail-admin 2018-08-12 09:41:46.750946000 +0200 +++ /usr/local/bin/ezjail-admin 2018-08-12 09:42:42.863180000 +0200 @@ -1053,7 +1053,7 @@ # make and setup our world, then split basejail and newjail cd "${ezjail_sourcetree}" && env DESTDIR="${ezjail_jailfull}" make ${ezjail_installaction} || exerr "Error: The command 'make ${ezjail_installaction}' failed.\n Refer to the error report(s) above." - cd "${ezjail_sourcetree}/etc" && env DESTDIR="${ezjail_jailfull}" make distribution || exerr "Error: The command 'make distribution' failed.\n Refer to the error report(s) above." + cd "${ezjail_sourcetree}" && env DESTDIR="${ezjail_jailfull}" make distribution || exerr "Error: The command 'make distribution' failed.\n Refer to the error report(s) above." ezjail_splitworld fi # installaction="none" Regards, Kristof From owner-freebsd-current@freebsd.org Sat Aug 25 10:13:16 2018 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 51C9710853D5 for ; Sat, 25 Aug 2018 10:13:16 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mail.bsd4all.net (mail.bsd4all.net [144.76.30.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.bsd4all.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EAD69921B4 for ; Sat, 25 Aug 2018 10:13:15 +0000 (UTC) (envelope-from herbert@gojira.at) Date: Sat, 25 Aug 2018 12:13:08 +0200 From: "Herbert J. Skuhra" To: freebsd-current@freebsd.org Subject: Re: pkg-base: how to avoid FreeBSD-$PACKAGE-{profile|development} when using FreeBSD pkg-base Message-ID: <20180825101308.xbnfbv7xfmuifl2b@mail.bsd4all.net> References: <20180825113108.19b8cd86@thor.intern.walstatt.dynvpn.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180825113108.19b8cd86@thor.intern.walstatt.dynvpn.de> User-Agent: NeoMutt/20180716 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Sat, 25 Aug 2018 10:13:16 -0000 On Sat, Aug 25, 2018 at 11:30:41AM +0200, O. Hartmann wrote: > > For some experiments on PINE64 we build packages from FreeBSD's base system. The > individual package seems to comprise always from several flavours, the > "regular/production" one, profile/profiling one and development, for instance for package > FreeBSD-libxo: > > FreeBSD-libxo: 12.0.s20180825090036 [FreeBSD-base] > FreeBSD-libxo-development: 12.0.s20180825090036 [FreeBSD-base] > FreeBSD-libxo-profile: 12.0.s20180825090036 [FreeBSD-base] > > When installing packages as recommended on the FreeBSD pkg-base Wiki > (https://wiki.freebsd.org/PkgBase) via > > pkg install -g 'FreeBSD-*' > > it is implicit that I also get those unwanted "profiling" and "development" packages as > well as the supposed to be the "production" ones. Fiddling around whith the pattern left > me with some problems, as it seems to me to make the efforts to high to target all wanted > packages or avoid development packages. I haven't found a proper way to exclude all the > unwanted packages (development, prifile) by the global pattern. Have you checked the content of the development packages? I guess you have to install them! To disable profile-packages set WITHOUT_PROFILE in /etc/src.conf. -- Herbert