Skip to contentSkip to conversation

Link /media to /run/media

PATCH In review Michael Gloff 2 participants 5 messages Dec 13, 2014 – Feb 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 Link /media to /run/media

Since the change in automout.sh to mount devices to /run/media, we create the /run/media directory on startup and link /media to it.

---
 meta/recipes-core/initscripts/initscripts-1.0/volatiles | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/initscripts/initscripts-1.0/volatiles +2 -0
index 297245d..1fc5816 100644
@@ -34,3 +34,5 @@ f root root 0664 /var/log/wtmp none
 f root root 0664 /var/run/utmp none
 l root root 0644 /etc/resolv.conf /var/run/resolv.conf
 f root root 0644 /var/run/resolv.conf none
+d root root 1777 /run/media none
+l root root 1777 /media /run/media
Signature · 1 line
2.1.2.374.g63a4513
#1 lore raw

PATCH v2 2/2 volatiles: Create /var/run/resolv.conf before linking to it

---
 meta/recipes-core/initscripts/initscripts-1.0/volatiles | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/initscripts/initscripts-1.0/volatiles +1 -1
index 1fc5816..e6f0695 100644
@@ -32,7 +32,7 @@ l root root 1777 /tmp /var/tmp
 d root root 0755 /var/lock/subsys none
 f root root 0664 /var/log/wtmp none
 f root root 0664 /var/run/utmp none
-l root root 0644 /etc/resolv.conf /var/run/resolv.conf
 f root root 0644 /var/run/resolv.conf none
+l root root 0644 /etc/resolv.conf /var/run/resolv.conf
 d root root 1777 /run/media none
 l root root 1777 /media /run/media
Signature · 1 line
2.1.2.374.g63a4513
#2 lore raw

Re: [PATCH V2 2/2] volatiles: Create /var/run/resolv.conf before linking to it

I really messed up the commit messages on the first one, please accept V2.

Michael Gloff

Quoted 24 lines · Michael Gloff
---
 meta/recipes-core/initscripts/initscripts-1.0/volatiles | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/initscripts/initscripts-1.0/volatiles +1 -2
index 1fc5816..e6f0695 100644
@@ -32,7 +32,7 @@ l root root 1777 /tmp /var/tmp
 d root root 0755 /var/lock/subsys none
 f root root 0664 /var/log/wtmp none
 f root root 0664 /var/run/utmp none
-l root root 0644 /etc/resolv.conf /var/run/resolv.conf
 f root root 0644 /var/run/resolv.conf none
+l root root 0644 /etc/resolv.conf /var/run/resolv.conf
 d root root 1777 /run/media none
 l root root 1777 /media /run/media
--

2.1.2.374.g63a4513

#3 lore raw

Re: [PATCH V2 2/2] volatiles: Create /var/run/resolv.conf before linking to it

In reply to Michael Gloff

No commit log?

Also, the order for a symbolic link should not matter, so why make this change?

Quoted 19 lines · Michael Gloff
---
  meta/recipes-core/initscripts/initscripts-1.0/volatiles | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/initscripts/initscripts-1.0/volatiles +1 -1
index 1fc5816..e6f0695 100644
@@ -32,7 +32,7 @@ l root root 1777 /tmp /var/tmp
  d root root 0755 /var/lock/subsys none
  f root root 0664 /var/log/wtmp none
  f root root 0664 /var/run/utmp none
-l root root 0644 /etc/resolv.conf /var/run/resolv.conf
  f root root 0644 /var/run/resolv.conf none
+l root root 0644 /etc/resolv.conf /var/run/resolv.conf
  d root root 1777 /run/media none
  l root root 1777 /media /run/media
Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#4 lore raw

Re: [PATCH V2 2/2] volatiles: Create /var/run/resolv.conf before linking to it

Sorry for such a late reply. I'll fix the commit log. The reason for the order change is that I get:

rm: can't remove '/etc/resolv.conf': Read-only file system
ln: /etc/resolv.conf: File exists

every time on boot up. When switched, no error messages. It does still 'work', I just thought I'd clear up an error message while I was at it.

Michael Gloff

Quoted 39 lines · Gary Thomas

No commit log?

Also, the order for a symbolic link should not matter, so why make this change?

Quoted 13 lines · Michael Gloff
---
  meta/recipes-core/initscripts/initscripts-1.0/volatiles | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/initscripts/initscripts-1.0/volatiles +0 -0
index 1fc5816..e6f0695 100644

meta/recipes-core/initscripts/initscripts-1.0/volatiles l root root 1777 /tmp /var/tmp · line 38

Quoted 8 lines
meta/recipes-core/initscripts/initscripts-1.0/volatiles +1 -1
@@ -32,7 +32,7 @@ l root root 1777 /tmp /var/tmp
  d root root 0755 /var/lock/subsys none
  f root root 0664 /var/log/wtmp none
  f root root 0664 /var/run/utmp none
-l root root 0644 /etc/resolv.conf /var/run/resolv.conf
  f root root 0644 /var/run/resolv.conf none
+l root root 0644 /etc/resolv.conf /var/run/resolv.conf
  d root root 1777 /run/media none
  l root root 1777 /media /run/media

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core