Mark as essential to prevent removal from a running system.

Signed-off-by: Bruno Randolf <b...@einfach.org>
---
 package/base-files/Makefile | 1 +
 package/kernel/Makefile     | 2 +-
 package/opkg/Makefile       | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 2152edd..b08afbc 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -12,6 +12,7 @@ include $(INCLUDE_DIR)/version.mk
 
 PKG_NAME:=base-files
 PKG_RELEASE:=118.2
+PKG_FLAGS:=essential
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
 PKG_BUILD_DEPENDS:=opkg/host
diff --git a/package/kernel/Makefile b/package/kernel/Makefile
index 8050817..2b0f1df 100644
--- a/package/kernel/Makefile
+++ b/package/kernel/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=kernel
-PKG_FLAGS:=hold
+PKG_FLAGS:=hold essential
 
 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
 SCAN_DEPS=modules/*.mk $(TOPDIR)/target/linux/*/modules.mk
diff --git a/package/opkg/Makefile b/package/opkg/Makefile
index f6e9875..036818e 100644
--- a/package/opkg/Makefile
+++ b/package/opkg/Makefile
@@ -24,6 +24,7 @@ PKG_REMOVE_FILES = autogen.sh aclocal.m4
 PKG_BUILD_PARALLEL:=1
 HOST_BUILD_PARALLEL:=1
 PKG_INSTALL:=1
+PKG_FLAGS:=essential
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/host-build.mk
-- 
1.8.1.2
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to