All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images
@ 2012-10-22 21:46 Chase Maupin
  2012-10-22 21:46 ` [PATCH 2/2] arago-base-tisdk-image: inherit remove-net-rules Chase Maupin
  2012-10-24 20:00 ` [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images Denys Dmytriyenko
  0 siblings, 2 replies; 4+ messages in thread
From: Chase Maupin @ 2012-10-22 21:46 UTC (permalink / raw)
  To: meta-arago

* Inherit the remove-net-rules class in the TISDK images to remove
  the utility that creates the persistent net rules file.
* This allows moving SD cards between EVMs.

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
---
 meta-arago-distro/classes/remove-net-rules.bbclass |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 meta-arago-distro/classes/remove-net-rules.bbclass

diff --git a/meta-arago-distro/classes/remove-net-rules.bbclass b/meta-arago-distro/classes/remove-net-rules.bbclass
new file mode 100644
index 0000000..3227221
--- /dev/null
+++ b/meta-arago-distro/classes/remove-net-rules.bbclass
@@ -0,0 +1,15 @@
+# Add a ROOTFS_POSTPROCESS_COMMAND that will strip the write_net_rules
+# executable from the file system.  This will prevent the
+# 70-persistent-net.rules from being created.  Not having this file
+# will allow moving SD cards between EVMs and similar boards such as
+# beaglebone and the EVM.
+
+ROOTFS_POSTPROCESS_COMMAND += "rootfs_remove_net_rules"
+
+rootfs_remove_net_rules () {
+    if [ -e ${IMAGE_ROOTFS}/lib/udev/write_net_rules ]
+    then
+        rm ${IMAGE_ROOTFS}/lib/udev/write_net_rules
+    fi
+}
+
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-24 21:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-22 21:46 [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images Chase Maupin
2012-10-22 21:46 ` [PATCH 2/2] arago-base-tisdk-image: inherit remove-net-rules Chase Maupin
2012-10-24 20:00 ` [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images Denys Dmytriyenko
2012-10-24 21:11   ` Maupin, Chase

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.