[Bug 6182] nologin: new applet

Mike Frysinger vapier at gentoo.org
Tue Feb 16 17:20:03 UTC 2016


On 16 Feb 2016 09:12, Natanael Copa wrote:
> On Mon, 15 Feb 2016 19:09:20 -0500 Mike Frysinger 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?

create a sep package to hold things other than busybox's main exe.
then the system you describe continues to work.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/busybox-cvs/attachments/20160216/0ee75a32/attachment.asc>


More information about the busybox-cvs mailing list