I've followed http://dreamcat4.github.io/finch/install/ to the letter.
After running the installation I'm trying to create my first jail. And that leads to an error message, suggesting the shell environment is not correctly set up. Adding set -x to the top of the qjail script leads to the following:
Code: Select all
nas // root^> qjail create -4 "$jail_ip,$jail_loopback" "$jailname"
+ alias help=__finch_help_wrapper
+ [ /mnt/pool1/finch/etc/finch/exports/qjail = su ]
+ [ /mnt/pool1/finch/etc/finch/exports/qjail != /mnt/pool1/finch/etc/finch/exports/qjail ]
+ _shell=/mnt/pool1/finch/etc/finch/exports/qjail
+ [ /mnt/pool1/finch/etc/finch/exports/qjail != sh ]
+ [ /mnt/pool1/finch/etc/finch/exports/qjail = /mnt/pool1/finch/etc/finch/exports/qjail ]
+ [ /mnt/pool1/finch/etc/finch/exports/qjail = /mnt/pool1/finch/etc/finch/exports/qjail ]
+ [ /mnt/pool1/finch/etc/finch/exports/qjail = /mnt/pool1/finch/etc/finch/exports/qjail ]
+ complete -o default -F __finch_completion finch
/etc/finch/subr/__p__profile: complete: not found
+ complete -o default -F __finch_bootstrap_completion finch-bootstrap
/etc/finch/subr/__p__profile: complete: not found
Code: Select all
nas // root^> echo $SHELL
/usr/local/bin/bash
So that is correct. And the complete bash command is also known:
Code: Select all
nas // root^> complete
complete -o default -F __finch_bootstrap_completion finch-bootstrap
complete -o default -F __finch_completion finch
Code: Select all
/etc/finch/subr/__p__profile: complete: not found


