Ignore:
Timestamp:
03/06/14 11:35:20 (9 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
69b2305
Parents:
27b31a3
Message:

Add a nullfs backed "socket" passthrough layer to pbifs, this allows sockets in
/var/run to be available to PBIs, same as in /tmp

This fixes bugs with CUPS not being able to work in PBIs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager/pbime/pbimount

    rb6a6398 r6d736fb  
    6969   is_mounted "${pDir}/virtbase/tmp" || mount_nullfs /tmp "${pDir}/virtbase/tmp" 
    7070 
     71   # Mount our real system /var/run with nullfs, so that sockets are available which tend 
     72   # to exist there 
     73   if [ ! -d "/usr/pbi/varrun" ] ; then 
     74      mkdir /usr/pbi/varrun 
     75   fi 
     76   is_mounted "${pDir}/virtbase/usr/pbi/varrun" || mount_nullfs /var/run "${pDir}/virtbase/usr/pbi/varrun" 
     77 
    7178   if [ -d "${pDir}/virtbase/compat/linux/proc" ] ; then 
    7279     is_mounted "${pDir}/virtbase/compat/linux/proc" || mount -t linprocfs linprocfs "${pDir}/virtbase/compat/linux/proc" 
Note: See TracChangeset for help on using the changeset viewer.