I've been looking at http://wiki.freebsd.org/Jails and saw it should now be possible to use jexec with the jail's name instead of the jail id.
man jexec:
But it seems it's not fully implemented yet as it still requires the jail id..
Should I reopen http://www.freebsd.org/cgi/query-pr.cgi?pr=119305 ?
man jexec:
The jexec utility executes command inside the jail identified by either jailname or jid or both.
But it seems it's not fully implemented yet as it still requires the jail id..
Code:
root@molly:~#jls
JID IP Address Hostname Path
5 192.168.1.192 build.dicelan.home /jail/j2
1 192.168.1.191 internetz.dicelan.home /jail/j1
root@molly:~#jexec -n build su -
jexec: Unable to parse jail ID.: Invalid argument
root@molly:~#jexec -n build 5 su -
jexec: Could not uniquely identify the jail.
root@molly:~#jexec 5 su -
root@build:~#uname -a
FreeBSD build.dicelan.home 7.1-STABLE FreeBSD 7.1-STABLE #2: Sun Feb 8 20:34:01 CET 2009 root@molly.dicelan.home:/usr/obj/usr/src/sys/MOLLY i386
Should I reopen http://www.freebsd.org/cgi/query-pr.cgi?pr=119305 ?