summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGavin Schenk <g.schenk@eckelmann.de>2020-10-08 09:32:53 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-10-14 12:30:02 +0200
commit70ddbd1504778cbf9b5980765cb5f11bbf2f3eb2 (patch)
treedac4f4d0a86e24c1444d09b9a63330bb3ed411c1
parentc1a5865a62f523ba993f514664d0886ab09432fd (diff)
downloadptxdist-70ddbd1504778cbf9b5980765cb5f11bbf2f3eb2.tar.gz
ptxdist-70ddbd1504778cbf9b5980765cb5f11bbf2f3eb2.tar.xz
rootfs: Fix creation of the /media directory
Ensure that with PTXCONF_ROOTFS_MEDIA set directory '/media' is created even if none of PTXCONF_ROOTFS_MEDIA[1-6] is set. On our read-only system we mount a tmpfs on directory '/media' in order to dynamically create additional mount points there. Fixes: 63e2d8696 (rootfs: don't create empty /media subdirs) Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de> Message-Id: <20201008073253.20055-1-g.schenk@eckelmann.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/rootfs.make1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/rootfs.make b/rules/rootfs.make
index 6b37db5bd..419ca001e 100644
--- a/rules/rootfs.make
+++ b/rules/rootfs.make
@@ -63,6 +63,7 @@ ifdef PTXCONF_ROOTFS_HOME_ROOT
@$(call install_copy, rootfs, 0, 0, 0700, /root)
endif
ifdef PTXCONF_ROOTFS_MEDIA
+ @$(call install_copy, rootfs, 0, 0, 0755, /media)
ifneq ($(call remove_quotes,$(PTXCONF_ROOTFS_MEDIA1)),)
@$(call install_copy, rootfs, 0, 0, 0777, /media/$(PTXCONF_ROOTFS_MEDIA1))
endif