mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] rootfs: support for symlink resolv.conf to /run
@ 2012-09-24  9:12 Jan Luebbe
  0 siblings, 0 replies; only message in thread
From: Jan Luebbe @ 2012-09-24  9:12 UTC (permalink / raw)
  To: ptxdist; +Cc: Jan Luebbe

This allows using NetworkManager on a read-only root FS.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 rules/rootfs.in   |    8 ++++++++
 rules/rootfs.make |    3 +++
 2 files changed, 11 insertions(+)

diff --git a/rules/rootfs.in b/rules/rootfs.in
index 179e331..c36a79a 100644
--- a/rules/rootfs.in
+++ b/rules/rootfs.in
@@ -407,6 +407,14 @@ choice
 		help
 		  If enabled, it installs /etc/resolv.conf as a link to /proc/net/pnp.
 
+	config ROOTFS_RESOLV_RUN
+		bool
+		prompt "link to /run/resolv.conf"
+		help
+		  If enabled, it installs /etc/resolv.conf as a link to
+		  /run/resolv.conf. This is useful if the root filesystem is mounted
+		  read-only.
+
 	config ROOTFS_RESOLV_NONE
 		bool
 		prompt "none"
diff --git a/rules/rootfs.make b/rules/rootfs.make
index c60b840..4ba33d1 100644
--- a/rules/rootfs.make
+++ b/rules/rootfs.make
@@ -229,6 +229,9 @@ endif
 ifdef PTXCONF_ROOTFS_RESOLV_LINK
 	@$(call install_link, rootfs, /proc/net/pnp, /etc/resolv.conf)
 endif
+ifdef PTXCONF_ROOTFS_RESOLV_RUN
+	@$(call install_link, rootfs, /run/resolv.conf, /etc/resolv.conf)
+endif
 ifdef PTXCONF_ROOTFS_SERVICES
 	@$(call install_alternative, rootfs, 0, 0, 0644, /etc/services)
 endif
-- 
1.7.10.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-09-24  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-24  9:12 [ptxdist] [PATCH] rootfs: support for symlink resolv.conf to /run Jan Luebbe

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