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
_______________________________________________
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"

Reply via email to