Skip to content

patches: luci: dont use opkg --force-overwrite

Josef Schlehofer requested to merge luci_opkg_force_overwrite into v4.0

In case of installing ntpd package in LuCI, which is in conflict due to file, which is provided by another package (in this case busybox). It uses opkg install ntpd --force-overwrite. When you want to use switch-branch hbs from hbk it will fail because of collision.

DIE:
[string "transaction"]:330: [string "transaction"]:153: Collisions:
• /sbin/ntpd: busybox (new-file), ntpd (existing-file)
Aborted

All the details are included in the commit message of the patch.

Forum thread: https://forum.turris.cz/t/recommended-way-to-install-additional-packages/10338
Github issue: https://github.com/openwrt/luci/issues/2771
(Upstream doesn't seem that they want to change the behavior as it is intended by them. Already for 7 years)

The patch is marked as wip not as hack, because it would be nice, if we (or maybe someon else) could improve a little bit LuCI to be more user-friendly. At least to provide choice, if the user wants to overwrite it or not.

Merge request reports