mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Jan Luebbe <jlu@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Jan Luebbe <jlu@pengutronix.de>
Subject: [ptxdist] [PATCH] rootfs: support for symlink resolv.conf to /run
Date: Mon, 24 Sep 2012 11:12:08 +0200	[thread overview]
Message-ID: <1348477928-7443-1-git-send-email-jlu@pengutronix.de> (raw)

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

                 reply	other threads:[~2012-09-24  9:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1348477928-7443-1-git-send-email-jlu@pengutronix.de \
    --to=jlu@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox