You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opkg can remove itself too easily. Just a wrong paste can run something like;
opkg remove opkg install openvpn-openssl
It runs happily. However, without opkg, I cannot reinstall it.
This is very difficult to undo.
opkg should be somehow pre-locked in order to avoid removal. The user should need to supply some time of force or unlock the package before in order to really remove opkg.
The text was updated successfully, but these errors were encountered:
I think we just need to mark opkg as essential package.
You can test the effect by carefully editing /usr/lib/opkg/status. Skip to the "Package: opkg" section and add "Essential: yes" to it, afterwards opkg will refuse to uninstall itself with:
root@LEDE:/# opkg remove opkg
Refusing to remove essential package opkg.
Removing an essential package may lead to an unusable system, but if
you enjoy that kind of pain, you can force opkg to proceed against
its will with the option: --force-removal-of-essential-packages
No packages removed.
luizluca:
Hello,
opkg can remove itself too easily. Just a wrong paste can run something like;
opkg remove opkg install openvpn-openssl
It runs happily. However, without opkg, I cannot reinstall it.
This is very difficult to undo.
opkg should be somehow pre-locked in order to avoid removal. The user should need to supply some time of force or unlock the package before in order to really remove opkg.
The text was updated successfully, but these errors were encountered: