[Solved] Bash in a Jail

Status
Not open for further replies.

randName

Cadet
Joined
Jan 3, 2015
Messages
2
I'm trying to get plowshare up in a Jail, and that requires Bash. I did the usual…
Code:
$  sudo pkg install bash
...
Message for bash-4.3.30_1:
======================================================================

bash requires fdescfs(5) mounted on /dev/fd

If you have not done it yet, please do the following:

     mount -t fdescfs fdesc /dev/fd
...
$  sudo mount -t fdescfs fdesc /dev/fd
mount: fdesc: Operation not permitted


whoops. I tried to run some plowshare code anyway
Code:
$  plowdown
/usr/bin/plowdown: line 754: /dev/fd/62: No such file or directory


And I looked it up, it's just a process substitution in Bash.

I did some research, and I think it involves fdescfs being unusable in jails. It seems patched, so I cannot confirm. I'm new to FreeBSD (came from the land of Debian) and so I don't understand much of it yet. Any help (even if it's telling me that this cannot be done for now, because I really don't get the bug report) will be appreciated.

SOLVED: From the host system, run
Code:
mount -t fdescfs fdesc /mnt/tank/jails/[jail name]/dev/fd


However, I still do not know how to run this when the jails are up. Another time the.
 
Last edited:

Sinead11

Cadet
Joined
Jan 18, 2015
Messages
2
RandName,
Thanks for your reply. I will get back and look at this further and see how I go.

Could you perhaps run the command as a power up script (with just one command), if already mounted it will exit 1, if not, it will perform the mount and exit status 0 (success)?

Sinead
 

KevDog

Patron
Joined
Nov 26, 2016
Messages
462
Sorry to open up old topic -- but how do you run this command on startup of FreeNAS -- Is this a startup script?
 
Status
Not open for further replies.
Top