This allows using NetworkManager on a read-only root FS.
Signed-off-by: Jan Luebbe <[email protected]>
---
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
[email protected]