diff mbox series

[LEDE-DEV,v2,1/6] include/rootfs.mk: move boot directory for later use

Message ID 20180417185005.5810-2-tomek_n@o2.pl
State New
Headers show
Series intel-microcode: load as early as possible | expand

Commit Message

Tomasz Maciej Nowak April 17, 2018, 6:50 p.m. UTC
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@o2.pl>
 include/rootfs.mk | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


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))