From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Jan Luebbe Date: Mon, 24 Sep 2012 11:12:08 +0200 Message-Id: <1348477928-7443-1-git-send-email-jlu@pengutronix.de> Subject: [ptxdist] [PATCH] rootfs: support for symlink resolv.conf to /run Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Jan Luebbe This allows using NetworkManager on a read-only root FS. Signed-off-by: Jan Luebbe --- 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