From 663145e419410876f6a962e7f3461ed73eb50831 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 25 Sep 2016 09:30:55 +0200 Subject: image: fix CONFIG_CLEAN_IPKG with CONFIG_TARGET_PER_DEVICE_ROOTFS Running prepare_rootfs on TARGET_DIR deletes the opkg state when CONFIG_CLEAN_IPKG is enabled, making the per-device rootfs package install fail. To avoid this, create a copy of the TARGET_DIR before prepare_rootfs is run and use this as basis for per-device rootfs generation. Signed-off-by: Matthias Schiffer --- include/image.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/image.mk') diff --git a/include/image.mk b/include/image.mk index b963735266..d48b1f6abf 100644 --- a/include/image.mk +++ b/include/image.mk @@ -297,7 +297,7 @@ opkg_target = \ target-dir-%: FORCE rm -rf $(mkfs_cur_target_dir) $(mkfs_cur_target_dir).opkg - $(CP) $(TARGET_DIR) $(mkfs_cur_target_dir) + $(CP) $(TARGET_DIR_ORIG) $(mkfs_cur_target_dir) -mv $(mkfs_cur_target_dir)/etc/opkg $(mkfs_cur_target_dir).opkg echo 'src default file://$(PACKAGE_DIR_ALL)' > $(mkfs_cur_target_dir).conf $(if $(call opkg_package_files,$(mkfs_packages_add)), \ -- cgit v1.2.3