Failing pbi_makeport => ERROR: Failed creating ZFS base dataset

Status
Not open for further replies.

xaxes

Cadet
Joined
May 1, 2013
Messages
2
Hey all.
I wasn't able to find any related topic/thread so I gonna open a new one.

I want to provide cupsd in jail/plugin environment to be able to make it persistent
even using freenas from USB stick.

I followed instructions in the WIKI : http://doc.freenas.org/index.php/Jails#Creating_your_own_FreeNAS.C2.AE_PBIs

At the point of building the pbi I got an error:

# pbi_makeport -c . -k -o . --mkdebug print/cups
Running buildworld / installworld (into a chroot)
Creating ZFS /usr/pbi/.pbi-world-amd64 dataset...
internal error: failed to initialize ZFS library
internal error: failed to initialize ZFS library
internal error: failed to initialize ZFS library
internal error: failed to initialize ZFS library
ERROR: Failed creating ZFS base dataset


I wasn't able to find a solution how to get the pbi build.
Recently I tried to rebuild it, but ran into the same error.
The log at /usr/pbi/.buildWorldLog looks good, it ends with
--------------------------------------------------------------
>>> World build completed on Wed May 1 16:17:53 CEST 2013
--------------------------------------------------------------

Unfortunately it rebuilds 'world' when I retype the pbi_makeport
command.
If you need any further information please tell me.


thanks in advance
 

xaxes

Cadet
Joined
May 1, 2013
Messages
2
Hey,
I just gived up. The actual problem (cups in jail) got fixed by installing it using pkg_add.
There could be some problems with permission setup for printer devices in devfs. Here
a short description:

* Install cups in jail
* add group cups with same gid as in jail to 'host'
* mount -uw /
* add the following to /conf/base/etc/devfs.rules
[devfsrules_jail=5] # have to be the same as in /etc/rc.conf of 'host'
add path 'ulpt*' mode 660 group cups
add path 'unlpt*' mode 660 group cups
add path 'usb/0.2.0' mode 0660 group cups # 0.2.0 has to be adjusted according your setup
* mount -ur /
* if you want to test, just copy devfs.rules of conf/base to /, otherwise reboot


best regards

-- thread can be closed
 
Status
Not open for further replies.
Top