Changeset 544ed61f


Ignore:
Timestamp:
07/14/14 08:37:16 (11 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, enter/10, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
014de73
Parents:
c7c25aa
Message:

When creating jails for a PBI, use 'pbijail-<OriginName?>' for the jail name

File:
1 edited

Legend:

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

    r37e71e4f r544ed61f  
    573573# Function to create a new jail via warden and setup install into it 
    574574do_pbi_create_new_jail() { 
     575 
     576        local newjname="pbijail-`echo $PBI_ORIGIN | cut -d '/' -f 2`" 
     577 
    575578        # Look for the first available pbijail nickname 
    576579        num=0 
    577580        while : 
    578581        do 
    579                 warden list | grep -q "^pbijail${num}" 
     582                warden list | grep -q "^${newjname}${num}" 
    580583                if [ $? -ne 0 ] ; then break ; fi 
    581584                num=`expr $num + 1` 
    582585        done 
    583586 
    584         warden create pbijail${num} --autoipv4  --startauto --portjail 
     587        warden create ${newjname}${num} --autoipv4  --startauto --portjail 
    585588        if [ $? -ne 0 ] ; then 
    586589                exit_err "Failed creating new jail automatically!" 
    587590        fi 
    588591 
    589         set_jail_mode "pbijail${num}" 
     592        set_jail_mode "${newjname}${num}" 
    590593} 
    591594 
     
    597600        parse_add_pbi_cmdline "$@" 
    598601 
    599         # If this isn't a container request, switch to package mode 
    600602        load_pbi_info_index "$PBI_FILENAME" 
    601603        if [ $? -ne 0 ] ; then 
Note: See TracChangeset for help on using the changeset viewer.