Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 405565

Summary: app-emulation/lxc - init script affects other init scripts
Product: Gentoo Linux Reporter: Piotr Karbowski (RETIRED) <slashbeast>
Component: [OLD] Core systemAssignee: Diego Elio Pettenò (RETIRED) <flameeyes>
Status: RESOLVED FIXED    
Severity: normal CC: dev-zero, gentoo.guillaume, virtualization
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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