[FS#571] opkg can be too easily removed

LEDE Bugs lede-bugs at lists.infradead.org
Tue Feb 28 18:02:28 PST 2017


The following task has a new comment added:

FS#571 - opkg can be too easily removed
User who did this - Jo-Philipp Wich (jow-)

----------
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 at 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.

----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=571#comment2021



More information about the lede-bugs mailing list