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.sch...@eckelmann.de>
---
Hi,

the "messed whitespaces" of changes in our mail server software.
Our IT department implemented a workaround, I hope this
mail looks better. 

Regards
Gavin


 rules/rootfs.make | 1 +
 1 file changed, 1 insertion(+)

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


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de

Reply via email to