[Bug 6182] nologin: new applet

Natanael Copa ncopa at alpinelinux.org
Tue Feb 16 08:12:33 UTC 2016


On Mon, 15 Feb 2016 19:09:20 -0500
Mike Frysinger <vapier at gentoo.org> wrote:

> On 15 Feb 2016 17:23, Natanael Copa wrote:
> > On Sat, 13 Feb 2016 13:32:10 +0100
> > Bernhard Reutner-Fischer <rep.dot.nop at gmail.com> wrote:  
> > > On February 13, 2016 12:04:40 PM GMT+01:00, bugzilla at busybox.net wrote:  
> > > >https://bugs.busybox.net/show_bug.cgi?id=6182
> > > >
> > > >Mike Frysinger <vapier at gentoo.org> changed:
> > > >
> > > >           What    |Removed                     |Added
> > > >----------------------------------------------------------------------------
> > > >            Summary|Add /sbin/nologin           |nologin: new applet    
> > > 
> > > We already have that:
> > > https://git.busybox.net/busybox/tree/applets_sh/nologin  
> > 
> > Alpine Linux has a problem with this approach.
> > 
> > On Alpine Linux you have busybox tools by default, but for users who
> > may need the bloaty GNU variants (or any other implementation) they can
> > simply `apk add coreutils` or similar. This works because no package
> > "owns" the applet symlinks pointing to busybox. Instead `busybox
> > --install -s` is run from a trigger[1], whenever any package is
> > installed or removed that has files in /usr/bin /bin etc. This means
> > that when you `apk del coreutils`, the busybox symlinks are restored
> > automatically.
> > 
> > With the shell script "applets" we have the problem that we get real
> > files, "owned" by a package. This causes a conflict error when
> > installing the package. Yes, the package manager can be told to accept
> > overwrites of given files, however, you can not make it automagically
> > restore the busybox applet when you remove the bloated version of it.  
> 
> i'm not against adding a dedicated applet here, but your use case doesn't
> sound like a compelling reason.  sounds more like bad package management.

Do you have a better suggestion on how package manager should solve it?
update-alternatives?

-nc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20160216/b87f8b10/attachment-0001.asc>


More information about the busybox mailing list