|
2015-01-11
, 23:53
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#1342
|
CMD_FIND="LANG=en_EN /bin/busybox find"
/usr/local/sbin:/usr/local/bin:/usr/sbin/gnu:/usr/sbin:/usr/bin/gnu:/usr/bin:/sbin:/bin:/usr/bin/X11
The Following User Says Thank You to joerg_rw For This Useful Post: | ||
|
2015-01-12
, 08:24
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#1343
|
what we learned:
1) use full qualified cmd path in all scripts:
CMD_FIND="LANG=en_EN /bin/busybox find"
2) never ever change anything in busybox. Not even fix any bugs in it, unless you made absolutely sure the fix won't break some behavior somebody relies on (e.g. nobody will depend on busybox segfaulting, so such a bug of course must get fixed as soon as it gets detected)
3) don't replace busybox by any other shell, not even busybox-power. Install any such augmented shell as concurrent alternative and keep original busybox in place
/j
|
2015-01-12
, 08:37
|
|
Posts: 6,447 |
Thanked: 20,981 times |
Joined on Sep 2012
@ UK
|
#1344
|
|
2015-01-12
, 09:56
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#1345
|
The Following User Says Thank You to Estel For This Useful Post: | ||
|
2015-01-12
, 11:14
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#1346
|
I beg to differ. IMO, the best solution would be to have backupmenu as modular set of scripts, invoked by user from shell (as early as possible, preferably the way like Mentalist's recovery shell does it, as posted a page or two back). This way, if anything fails, user have:
a) full log of what's going on
b) we don't need to rely on text2screen or any other mumbo-jumbo
c) we don"t need to be kept in stone age by not upgrading busybox (stupid, as bugs and security fixes are important).
d) fixing every "module" (script) in case of changes is trivial.
I really don't like monolithic pieces of code (hello, systemd) that makes me feel like I'm using windows 8.5, and not fixing bugs/updating such critical component as busybox is not acceptable.
/Estel
|
2015-01-12
, 17:16
|
|
Posts: 6,447 |
Thanked: 20,981 times |
Joined on Sep 2012
@ UK
|
#1347
|
The Following User Says Thank You to pichlo For This Useful Post: | ||
|
2015-01-12
, 19:37
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#1348
|
[...]pieces that are not guaranteed to be always the same (/bin/sh, or even busybox).
The Following 3 Users Say Thank You to joerg_rw For This Useful Post: | ||
|
2015-01-13
, 08:45
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#1349
|
The system shell is immutable, as already explained in my previous post. In no system you expect the system shell to be allowed to change semantics. Any complaints that it's "not updateable" are nonsense. You can update the system shell when you update the complete system - incl all app packages. And only then. What use has an "update of system shell" anyway? Isn't it like so far all packages worked great with the "old" shell? So why do you need updates? (NB I'm not talking about security bugfixes, which have to get done unconditionally, but in a way that's 100% backward compatible, i.e. doesn't change semantics of the shell commands)
/j
|
2015-01-13
, 15:04
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#1350
|
Tags |
backup, backupmenu, cssusupplement, max(useful), rescue-console, restore, system |
|
Afaik the developer of smscon was not aware that gnu ps had a different output. We worked out a solution so it worked with both, but I can't blame him for not considering gnu.
The idea of a small toolbox for limited devices is okay imho, but the incompatibility indeed it is a real pain.