summaryrefslogtreecommitdiffstats
path: root/recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch
Commit message (Collapse)AuthorAgeFilesLines
* lxc: fix systemd init issuesBruce Ashfield2015-04-111-0/+38
To generate a proper systemd.service file we should use lxc's builtin configuration option for the initscript type. To support both sysvinit and systemd, we trigger off the DISTRO var and enable the proper init system accordingly. When properly configured, lxc will create helper scripts and install the service file, so we can delete the explicit copy of the service file and let the default rules trigger and install what is needed. The helper files installed by lxc require a lsb function that is not commonly available in the 'functions' library: "action". To ensure that the helper scripts operate, we create a local action() routine with the expected semantics. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>