diff options
Diffstat (limited to 'dev/todo/install-bb-without-bb.mdwn')
-rw-r--r-- | dev/todo/install-bb-without-bb.mdwn | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/dev/todo/install-bb-without-bb.mdwn b/dev/todo/install-bb-without-bb.mdwn index 0dd5825..c0a8273 100644 --- a/dev/todo/install-bb-without-bb.mdwn +++ b/dev/todo/install-bb-without-bb.mdwn @@ -23,15 +23,15 @@ ProteanOS) **currently unable to upgrade `busybox`**, due to its own design. The Amazing Alternatives of `busybox` ------------------------------------- -Instead of [adding alternatives][alts] one at a time, [it would be nice][bb-ua] -to manage all of `busybox`'s utility links using `update-alternatives`. -Unfortunately, the [maintainer script][bb.pi] that runs `update-alternatives` -(as well as the [`update-alternatives` script][u-a] itself) needs a few -`busybox` utilities (`/bin/sh` for a start). Thus, after an older version of -`busybox` is deconfigured, a newer version can't be configured. `busybox` also -can't be configured when first unpacked by `prokit`. - -[alts]: http://git.proteanos.com/pkg/busybox.git/log/alternatives +Instead of [adding alternatives][alts-log] one at a time, [it would be +nice][bb-ua] to manage all of `busybox`'s utility links using +`update-alternatives`. Unfortunately, the [maintainer script][bb.pi] that runs +`update-alternatives` (as well as the [`update-alternatives` script][u-a] +itself) needs a few `busybox` utilities (`/bin/sh` for a start). Thus, after an +older version of `busybox` is deconfigured, a newer version can't be configured. +`busybox` also can't be configured when first unpacked by `prokit`. + +[alts-log]: http://git.proteanos.com/pkg/busybox.git/log/alternatives [bb-ua]: http://git.proteanos.com/pkg/busybox.git/commit/?id=1558d05c62ed90f7d93a14533541c33896b7b733 [bb.pi]: http://git.proteanos.com/pkg/busybox.git/tree/busybox.pkg/postinst [u-a]: https://git.openwrt.org/?p=project/opkg-lede.git;a=blob;f=utils/update-alternatives.in;hb=d4ba162 @@ -68,12 +68,14 @@ too old to have prepared for a safe upgrade. More design work needed.** The `opkg` script of the `opkg-lede` package will need to read `busybox`'s list of alternatives links. This is currently located at -`/usr/share/busybox/alternatives`, though the file's format will change when -`busybox` uses `update-alternatives` for everything. **A migration strategy for -`opkg-lede` will need to be designed.** +`/usr/share/busybox/alternatives`. [The file's format][alts] will change when +`busybox` uses `update-alternatives` for everything: the last two columns (name +and priority) will be dropped. `opkg` however can simply read the first column, +so it will maintain compatibility. **In summary**, `opkg-lede` can be fixed to be able to safely upgrade `busybox` soon, but more design work will be required for `busybox` to manage all of its utility links with `update-alternatives`. [opkg]: http://git.proteanos.com/pkg/opkg-lede.git/tree/opkg +[alts]: http://git.proteanos.com/pkg/busybox.git/tree/alternatives?id=e37f03311d934a8f33a9ff31db47b18bbf0be555 |