Re: [CURRENT, ezjail] rc, rc.subr and other rc. scripts gone: ezjail fails on 12-ALPHA

2018-08-25 Thread Kristof Provost

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-admin2018-08-12 09:41:46.750946000 +0200
+++ /usr/local/bin/ezjail-admin 2018-08-12 09:42:42.86318 +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
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


[CURRENT, ezjail] rc, rc.subr and other rc. scripts gone: ezjail fails on 12-ALPHA

2018-08-25 Thread O. Hartmann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

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.

Thanks in advance,

oh

- -- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).
-BEGIN PGP SIGNATURE-

iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCW4EAGAAKCRDS528fyFhY
lLVGAf95kEF2FnVtuDs4XYZs3qDlzlEMNkNtXoHnLYNdIp0Fmvl4a8+GwwswQogD
DdFcBbToJ2ER+mU0i9luAxI6zJ+pAfwLz24/BiZfMaJHz8O015E568w7Ut1YZ5Vf
JyiHLCJnnc7B/ST0f49txNGVXvxfLiRbrrNicHYFxw/DiYtDWLFk
=vabb
-END PGP SIGNATURE-
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"