mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] rootfs: Fix creation of the /media directory
@ 2020-10-05  9:16 Gavin Schenk
  2020-10-05  9:50 ` Uwe Kleine-König
  2020-10-05 11:10 ` [ptxdist] [PATCH v2] " Gavin Schenk
  0 siblings, 2 replies; 8+ messages in thread
From: Gavin Schenk @ 2020-10-05  9:16 UTC (permalink / raw)
  To: ptxdist; +Cc: Gavin Schenk

[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]

The directory /media is created depending on PTXCONF_ROOTFS_MEDIA only.

On our read-only system we mount a tmpfs on /media, so that we can
dynamically create additional mount points. With PTXCONF_ROOTFS_MEDIA set,
but none of PTXCONF_ROOTFS_MEDIA[1-6], the /media directory was not created
and mounting failed.

fixes: 63e2d8696124083fc
Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
---
 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

Eckelmann AG
Vorstand: Dipl.-Ing. Peter Frankenbach (Sprecher) Dipl.-Wi.-Ing. Philipp Eckelmann
Dr.-Ing. Marco Münchhof Dr.-Ing. Frank Uhlemann
Vorsitzender des Aufsichtsrats: Hubertus G. Krossa Stv. Vorsitzender des Aufsichtsrats: Dr.-Ing. Gerd Eckelmann
Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636
http://www.eckelmann.de


[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-10-07 18:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-05  9:16 [ptxdist] [PATCH] rootfs: Fix creation of the /media directory Gavin Schenk
2020-10-05  9:50 ` Uwe Kleine-König
2020-10-05 11:10 ` [ptxdist] [PATCH v2] " Gavin Schenk
2020-10-05 11:38   ` Denis Osterland-Heim
2020-10-05 12:02     ` Gavin Schenk
2020-10-05 12:36       ` Denis Osterland-Heim
2020-10-07  7:28   ` Michael Olbrich
2020-10-07 18:52     ` Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox