[LEDE-DEV] [PATCH v2 1/6] include/rootfs.mk: move boot directory for later use
Tomasz Maciej Nowak
tomek_n at o2.pl
Tue Apr 17 11:50:00 PDT 2018
Currently every file in /boot directory is copied over target /boot on
root file system and is usually inaccessible because appropriate boot
file system is mounted on top of it. Therefore move /boot with contents
to staging directory for later processing, which in result will also
save space on target root file system.
Signed-off-by: Tomasz Maciej Nowak <tomek_n at o2.pl>
---
include/rootfs.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/rootfs.mk b/include/rootfs.mk
index 76425c017a..2530fd8d07 100644
--- a/include/rootfs.mk
+++ b/include/rootfs.mk
@@ -90,6 +90,7 @@ define prepare_rootfs
rm -f $(1)/usr/lib/opkg/lists/*
rm -f $(1)/usr/lib/opkg/info/*.postinst*
rm -f $(1)/var/lock/*.lock
+ -mv -f $(1)/boot $(STAGING_DIR)/
$(call clean_ipkg,$(1))
$(call mklibs,$(1))
endef
--
2.17.0
More information about the Lede-dev
mailing list