does anyone use these any more?

Alexander Leidinger Alexander at leidinger.net
Fri Sep 14 08:45:23 UTC 2018


Quoting Oleg Ginzburg <olevole at olevole.ru> (from Thu, 13 Sep 2018  
18:45:51 +0300):

> With persist mode, CBSD created jail in follow scenario:
>
> 1) jail -c (create jail) in persist mode ( with empty exec.start script )
> 2) exec inside jail something  (zfs attach, /sbin/ifconfig ... ), what
> you need to do before launching /etc/rc -> /etc/rc.d/*
> 3) execute normal /etc/rc sequence
>
> in this way, /etc/rc.d/zfs can mount ZFS on 'start' stage without
> execution from CBSD wrapper 'late' commands after jail start, e.g (
> jexec X /sbin/zfs mount + restart all services ))
>
> Perhaps because of a misunderstanding of this option, exec.created
> hook was created in FreeBSD 12-HEAD ;-):

You could also call exec.created to be a much cleaner solution to this  
problem which also allows to do something like this with the base  
system only without the need for replacements for the jail rc scripts  
(additionally it makes it more easy for 3rd party jail management  
tools).

> https://lists.freebsd.org/pipermail/freebsd-jail/2018-August/003616.html

Note, the MFC to 11 of this is on my TODO list.

Bye,
Alexander.

-- 
http://www.Leidinger.net Alexander at Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild at FreeBSD.org  : PGP 0x8F31830F9F2772BF


More information about the freebsd-jail mailing list