Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379679 - app-emulation/lxc-0.7.4.2: init scrip fails to find config file in /etc/lxc/CONTAINER_NAME/config
Summary: app-emulation/lxc-0.7.4.2: init scrip fails to find config file in /etc/lxc/C...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 09:44 UTC by George Georgiev
Modified: 2011-09-05 18:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Georgiev 2011-08-18 09:44:59 UTC
lxc init script has a lxc_get_configfile() function that try's to detect the config file name/location, but the detection is actually canceled as the first condition is a non empty CONFIGFILE variable, bu CONFIGFILE is initialized with default value /etc/lxc/${CONTAINER}.conf (i.e. - it is never empty).

Reproducible: Always

Steps to Reproduce:
1. create container with config file in /etc/lxc/CONTAINER/config
2. create lxc.CONTAINER symlink in /etc/init.d/
3. run /etc/init.d/lxc.CONTAINER start
Actual Results:  
lxc-start: No such file or directory - failed to open /etc/lxc/CONTAINER.conf
lxc-start: failed to read configuration file                                                                                                                                                                                            * ERROR: lxc.fb64 failed to start

Expected Results:  
 * Starting CONTAINER ... [ ok ]
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-09-05 18:32:37 UTC
Thanks George, this is fixed in the new init script (and with the bump to 0.7.5).