Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 547266 - app-emulation/lxc-1.1.0-r3 has lxc.lxcpath=/var/lib/lxc but init.d file still reads config from /etc/lxc
Summary: app-emulation/lxc-1.1.0-r3 has lxc.lxcpath=/var/lib/lxc but init.d file still...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-21 08:06 UTC by Dennis Schridde
Modified: 2015-05-03 20:19 UTC (History)
0 users

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 Dennis Schridde 2015-04-21 08:06:15 UTC
In `app-emulation/lxc/lxc-1.1.1-r1.ebuild`:
```
pkg_postinst() {
        elog ""
        elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
        elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
        elog "please add the following to your /etc/lxc/default.conf"
        elog "lxc.lxcpath = /etc/lxc"
```

However in `app-emulation/lxc/files/lxc.initd.3`:
```
lxc_get_configfile() {
        if [ -f "/etc/lxc/${CONTAINER}.conf" ]; then
                echo "/etc/lxc/${CONTAINER}.conf"
        elif [ -f "/etc/lxc/${CONTAINER}/config" ]; then
                echo "/etc/lxc/${CONTAINER}/config"
```
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2015-04-23 16:32:04 UTC
+*lxc-1.1.2 (23 Apr 2015)
+
+  23 Apr 2015; Markos Chandras <hwoarang@gentoo.org> +lxc-1.1.2.ebuild,
+  files/lxc.initd.3:
+  Version bump. Bug #546232. Fix lxc path in the openrc init script. Bug #547266
+
Comment 2 Guillaume ZITTA 2015-05-03 20:19:22 UTC
Are you sure about LXC_PATH="/var/lib" ? [1]

shouldn't it be LXC_PATH="/var/lib/lxc" ?
 
[1] https://github.com/gentoo/gentoo-portage-rsync-mirror/blob/master/app-emulation/lxc/files/lxc.initd.3#L8