Date: Wed, 26 Apr 2017 14:58:21 +0000 From: bugzilla-noreply@freebsd.org To: current@FreeBSD.org Subject: [Bug 218849] Remove rc.conf jail configuration via jail_* variables Message-ID: <bug-218849-2597-TSt6KNLZI5@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-218849-2597@https.bugs.freebsd.org/bugzilla/> References: <bug-218849-2597@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218849 --- Comment #23 from Miroslav Lachman <000.fbsd@quip.cz> --- (In reply to Warner Losh from comment #22) I think it turns in to bikeshed now. Are we talking about rc.conf variables= to configure jails or about this as dependency for ezjail? No matter if you have 1 or 5 or 20 jails. The configuration in jail.conf is= as simple as in rc.conf, maybe even easier and more flexible. ## rc.conf style jail_enable=3D"YES" jail_list=3D"alpha" jail_exec_start=3D"/bin/sh /etc/rc" jail_exec_stop=3D"/bin/sh /etc/rc.shutdown" jail_devfs_enable=3D"YES" jail_devfs_ruleset=3D"devfsrules_jail" jail_flags=3D"-l -U root" jail_alpha_rootdir=3D"/vol0/jail/alpha" jail_alpha_hostname=3D"alpha.example.com" jail_alpha_ip=3D"10.11.12.13" ## jail.conf style exec.start =3D "/bin/sh /etc/rc"; exec.stop =3D "/bin/sh /etc/rc.shutdown"; exec.clean; mount.devfs; devfs_ruleset =3D 4; exec.jail_user =3D "root"; path =3D "/vol0/jail/$name"; exec.consolelog =3D "/var/log/jail/$name.console"; mount.fstab =3D "/etc/fstab.$name"; # A typical jail. alpha { host.hostname =3D "alpha.example.com"; ip4.addr =3D 10.11.12.13; } But if we are talking about jails management utility, then we have none in = base but a lot in ports / packages that does not depend on rc.conf style. We migrated all our jails on all machines from rc.conf to jail.conf the fir= st time I have seen the warning after machine upgrade. It was really easy.=20 I agree removing some feature on dot release can be a problem but I really don't understand why we should maintain two different styles for configuring jails in base. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218849-2597-TSt6KNLZI5>