[Bug 6182] nologin: new applet
bitjam at gmail.com
Tue Feb 16 09:02:32 UTC 2016
On Tue, Feb 16, 2016 at 09:12 AM, Natanael Copa said:
> > > 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?
One solution would be to keep the shell script "applets" in their own
directory and symlink to them just like you symlink real bb applets
to /bin/busybox. After you run "busybox --install -s", then run
a script that creates symlinks to the scripts if the slot in /bin/
is not already filled. Something like:
for script in $(find $SCRIPT_DIR -type f); do
test -e $link || ln -s $script $link
More information about the busybox