1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-17 12:43:56 +02:00

include/rootfs.mk: do not remove opkg prerm scripts during rootfs preparation

When a user removes a preinstalled opkg package, the package's prerm script
(and in particular our default_prerm) should run.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
Matthias Schiffer 2018-03-06 08:49:14 +01:00
parent 17c0362178
commit 696c6325a3
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -82,7 +82,6 @@ define prepare_rootfs
@-find $(1) -name '.#*' | $(XARGS) rm -f @-find $(1) -name '.#*' | $(XARGS) rm -f
rm -f $(1)/usr/lib/opkg/lists/* rm -f $(1)/usr/lib/opkg/lists/*
rm -f $(1)/usr/lib/opkg/info/*.postinst* rm -f $(1)/usr/lib/opkg/info/*.postinst*
rm -f $(1)/usr/lib/opkg/info/*.prerm*
$(call clean_ipkg,$(1)) $(call clean_ipkg,$(1))
$(call mklibs,$(1)) $(call mklibs,$(1))
endef endef