Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405565 - app-emulation/lxc - init script affects other init scripts
Summary: app-emulation/lxc - init script affects other init scripts
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
Depends on:
Reported: 2012-02-24 12:28 UTC by Piotr Karbowski (RETIRED)
Modified: 2013-03-04 09:08 UTC (History)
3 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Karbowski (RETIRED) gentoo-dev 2012-02-24 12:28:24 UTC
Today I spoted in my logs something odd, the lxc 'error message' from rc and dnsmasq init scripts, like example below

Feb 23 23:04:05 [rc] ln -s lxc /etc/init.d/lxc.container
Feb 24 13:05:27 [/etc/init.d/dnsmasq] ln -s lxc /etc/init.d/lxc.container

The problem is that lxc init script run safe checks in depend function, the function supposed to be used only by openrc for need/after/before etc.

There is also code like

[ $CONTAINER != $SVCNAME ] && CONFIGFILE=${CONFIGFILE:-$(lxc_get_configfile)}

which will be also executed every time deps cache is rebuild, not cool.

I can produce a fixes to the init script after this weekend, if no body fix it until then.

Reproducible: Always