Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 558854 - app-emulation/lxc-1.1.2-r2: creates undesirable file /etc/default/lxc
Summary: app-emulation/lxc-1.1.2-r2: creates undesirable file /etc/default/lxc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-26 20:37 UTC by Jakub Jirutka
Modified: 2016-05-19 04:26 UTC (History)
3 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 Jakub Jirutka 2015-08-26 20:37:42 UTC
When lxc is emerged it create these two useless files:

/etc/default/lxc:
    # LXC_AUTO - whether or not to start containers at boot
    LXC_AUTO="true"

    # BOOTGROUPS - What groups should start on bootup?
    #       Comma separated list of groups.
    #       Leading comma, trailing comma or embedded double
    #       comma indicates when the NULL group should be run.
    # Example (default): boot the onboot group first then the NULL group
    BOOTGROUPS="onboot,"

    # SHUTDOWNDELAY - Wait time for a container to shut down.
    #       Container shutdown can result in lengthy system
    #       shutdown times.  Even 5 seconds per container can be
    #       too long.
    SHUTDOWNDELAY=5

    # OPTIONS can be used for anything else.
    #       If you want to boot everything then
    #       options can be "-a" or "-a -A".
    OPTIONS=

    # STOPOPTS are stop options.  The can be used for anything else to stop.
    #       If you want to kill containers fast, use -k
    STOPOPTS="-a -A -s"

    USE_LXC_BRIDGE="false"  # overridden in lxc-net

    [ ! -f /etc/default/lxc-net ] || . /etc/default/lxc-net

/etc/default/useradd:
    # useradd defaults file
    GROUP=100
    HOME=/home
    INACTIVE=-1
    EXPIRE=
    SHELL=/bin/bash
    SKEL=/etc/skel


$ equery belongs lxc
 * Searching for lxc ...
...
app-emulation/lxc-1.1.2-r2 (/etc/default/lxc)
...

This is most likely bug in lxc upstream, but we can at least remove it in ebuild.

Reproducible: Always
Comment 1 Jakub Jirutka 2015-08-26 20:40:57 UTC
I'm sorry, useradd file is from another package, so the problem is just /etc/default/lxc.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2015-09-02 18:33:50 UTC
Like you said, this looks like an upstream bug. Did you report it upstream? I'd rather have this fixed upstream than messing with the ebuild.
Comment 3 Erik Mackdanz gentoo-dev 2016-05-19 04:26:39 UTC
Fixed in 2.0.1 ebuild.

howarang, it is still possible for the package maintainer to file a bug with upstream, but this change can quickly keep users' systems a little cleaner.