Setting lxc.console = none causes startup failures for the containers that runs in user namespace
Setting lxc.console = none causes startup failures for the containers that runs in user namespace

Setting "lxc.console = none" causes following failure during startup

      lxc-start 1389039861.061 INFO     lxc_start_ui - using rcfile lxcpath/original/config
      lxc-start 1389039861.062 INFO     lxc_confile - read uid map: type u nsid 0 hostid 260000 range 10000
      lxc-start 1389039861.062 INFO     lxc_confile - read uid map: type g nsid 0 hostid 260000 range 10000
      lxc-start 1389039861.062 WARN     lxc_log - lxc_log_init called with log already initialized
      lxc-start 1389039861.065 INFO     lxc_lsm - LSM security driver AppArmor
      lxc-start 1389039861.066 DEBUG    lxc_conf - allocated pty '/dev/pts/0' (5/6)
      lxc-start 1389039861.066 DEBUG    lxc_conf - allocated pty '/dev/pts/7' (7/8)
      lxc-start 1389039861.066 DEBUG    lxc_conf - allocated pty '/dev/pts/8' (9/10)
      lxc-start 1389039861.066 DEBUG    lxc_conf - allocated pty '/dev/pts/9' (11/12)
      lxc-start 1389039861.066 INFO     lxc_conf - tty's configured
      lxc-start 1389039861.066 DEBUG    lxc_start - sigchild handler set
      lxc-start 1389039861.066 ERROR    lxc_conf - Error chowning
      lxc-start 1389039861.066 ERROR    lxc_conf - Failed to chown
      lxc-start 1389039861.066 ERROR    lxc_start - Failed to shift tty into container
      lxc-start 1389039861.066 ERROR    lxc_start - failed to initialize the container
      lxc-start 1389039861.067 INFO     lxc_monitor - using monitor sock name lxc/0863ffed81827105/lxcpath

fix it by checking the console.name before using it.

Signed-off-by: S.Çağlar Onur <acf5ae661bb0a9f738c88a741b1d35ac69ab5408@10ur.org>
Signed-off-by: Serge Hallyn <3df611b026e4639bee8aef7a4beb2e39fcebb313@ubuntu.com>

tych0/lxc,Pelagicore/lxc,codebauss/lxc,bostjan/lxc,major/lxc,armcc/lxc,virajs/lxc,aeris/lxc,rowhit/lxc,szaszg/lxc,sapun/lxc,Pelagicore/lxc,yubo/lxc,bmoar/lxc,ss1h2a3tw/lxc,JohnPeacockMessageSystems/lxc,Ponce/lxc,Distrotech/lxc,LynxChaus/lxc,lazy404/lxc,terceiro/lxc,christiaan/lxc,ecarrara/lxc,caglar10ur/lxc,Pelagicore/lxc,tych0/lxc,QingweiPeterLan/cs188-lxc,ss1h2a3tw/lxc,ecarrara/lxc,rldleblanc/lxc,hfuCN/lxc,QingweiPeterLan/cs188-lxc,tych0/lxc,cjwatson/lxc,caglar10ur/lxc,jirislaby/lxc,Ponce/lxc,akshaykarle/lxc,hfuCN/lxc,hallyn/lxc,GreatFruitOmsk/lxc,federicobriata/lxc,lazy404/lxc,federicobriata/lxc,DarknessBeforeDawn/lxc,ksperis/lxc,akshaykarle/lxc,lisongmin/lxc,ysbnim/lxc,yubo/lxc,caglar10ur/lxc,rowhit/lxc,rldleblanc/lxc,ss1h2a3tw/lxc,ojkastl/lxc_Patches,terceiro/lxc,ksperis/lxc,rowhit/lxc,rldleblanc/lxc,sapun/lxc,efiop/lxc,Distrotech/lxc,ojkastl/lxc_Patches,thmo/lxc,lazy404/lxc,lisongmin/lxc,regit/lxc,thmo/lxc,fwilson42/lxc,bmoar/lxc,regit/lxc,JohnPeacockMessageSystems/lxc,lisongmin/lxc,szaszg/lxc,aeris/lxc,cjwatson/lxc,thmo/lxc,major/lxc,QingweiPeterLan/cs188-lxc,ojkastl/lxc_Patches,DarknessBeforeDawn/lxc,LynxChaus/lxc,virajs/lxc,codebauss/lxc,yubo/lxc,szaszg/lxc,Distrotech/lxc,armcc/lxc,ioops/lxc,raspberrypython/lxc,regit/lxc,hfuCN/lxc,hallyn/lxc,bostjan/lxc,hallyn/lxc,ioops/lxc,GreatFruitOmsk/lxc,ysbnim/lxc,ioops/lxc,JohnPeacockMessageSystems/lxc,hkjolhede/lxc,weizhenwei/lxc,efiop/lxc,ksperis/lxc,DarknessBeforeDawn/lxc,major/lxc,weizhenwei/lxc,GreatFruitOmsk/lxc,bostjan/lxc,ojkastl/lxc_Patches,jirislaby/lxc,efiop/lxc,armcc/lxc,federicobriata/lxc,LynxChaus/lxc,ysbnim/lxc,virajs/lxc,weizhenwei/lxc,aeris/lxc,hkjolhede/lxc,akshaykarle/lxc,raspberrypython/lxc,christiaan/lxc,bmoar/lxc,fwilson42/lxc,codebauss/lxc,cjwatson/lxc,ecarrara/lxc,sapun/lxc,fwilson42/lxc,jirislaby/lxc,christiaan/lxc,Ponce/lxc,terceiro/lxc,hkjolhede/lxc,raspberrypython/lxc