Skip to contentSkip to conversation

volatiles: Link /media appropriately

PATCH New Michael Gloff 1 participant 2 messages Feb 28, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 volatiles: Link /media appropriately

Since the change of /etc/udev/scripts/mount.sh to use tmpfs, link /media to it

---
 .../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
1.7.9.5
#1 lore raw

PATCH v3 2/2 volatiles: Change linking ordering of resolv.conf

Fixes error on boot on readonly rootfs
rm: can't remove '/etc/resolv.conf': Read-only file system
ln: /etc/resolv.conf: File exists

---
 .../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
1.7.9.5