projects
/
openwrt
/
staging
/
svanheule.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
487ca61
)
build: apk: Remove /run/apk/db.lock
author
Hauke Mehrtens
<
[email protected]
>
Thu, 14 Nov 2024 21:57:02 +0000
(22:57 +0100)
committer
Christian Marangi
<
[email protected]
>
Sat, 16 Nov 2024 13:22:22 +0000
(14:22 +0100)
Do not add the file /run/apk/db.lock to the root file system. The /run
folder should be on a tmpfs.
At runtime we should make /run point to a tmpfs. At build time we should
just remove the folder.
Signed-off-by: Hauke Mehrtens <
[email protected]
>
Link:
https://github.com/openwrt/openwrt/pull/16961
Signed-off-by: Christian Marangi <
[email protected]
>
package/Makefile
patch
|
blob
|
history
diff --git
a/package/Makefile
b/package/Makefile
index 2c7cd588793b628fb5595f70eca387745848fbe7..3c6621b81c3c13112bab39e2d9789cd616262142 100644
(file)
--- a/
package/Makefile
+++ b/
package/Makefile
@@
-101,6
+101,7
@@
ifneq ($(CONFIG_USE_APK),)
$(call apk,$(TARGET_DIR)) add --no-cache --initdb --no-scripts --arch $(ARCH_PACKAGES) \
--repositories-file /dev/null --repository file://$(PACKAGE_DIR_ALL)/packages.adb \
$$(cat $(TMP_DIR)/apk_install_list)
+ rm -rf $(TARGET_DIR)/run
else
$(file >$(TMP_DIR)/opkg_install_list,\
$(call opkg_package_files,\