Ticket #690: add_mount_jmetadir_fstab.diff

File add_mount_jmetadir_fstab.diff, 942 bytes (added by ermeaney, 20 months ago)

patch to warden to read fstab in jail meta directory

  • scripts/backend/startjail.sh

     
    120120  jFlags=`cat ${JMETADIR}/jail-flags` 
    121121fi 
    122122 
     123#Mount fsstab if any 
     124if [ -e "${JMETADIR}/fstab" ] ; then 
     125  mount -a -F ${JMETADIR}/fstab 
     126fi 
     127 
    123128# Start the jail now 
    124129echo "jail -c path=${JDIR}/${IP} host.hostname=${HOST} ${_ipflags} ${jFlags} persist" 
    125130jail -c path=${JDIR}/${IP} host.hostname=${HOST} ${_ipflags} ${jFlags} persist 
  • scripts/backend/stopjail.sh

     
    172172  umountjailxfs 
    173173fi 
    174174 
     175#Unmount fsstab if any 
     176if [ -e "${JMETADIR}/fstab" ] ; then 
     177  umount -a -F ${JMETADIR}/fstab 
     178fi 
     179 
    175180fi # End of FAST check 
    176181 
    177182echo -e ".\c"