[meta-freescale] [meta-fsl-ppc][PATCH 3/4] udev-extraconf: not automount network block devices

ting.liu at freescale.com ting.liu at freescale.com
Thu Jul 31 21:33:17 PDT 2014


From: Ting Liu <ting.liu at freescale.com>

The nbd devices are set up loop devices, we first have dead device
nodes, then later we attach stuff behind them. At the time of the udev
creation event, nothing works at nbd devices.

This avoids unnecessary boot error msg:
| nbd0: Attempted send on closed socket
| end_request: I/O error, dev nbd0, sector 0

Signed-off-by: Ting Liu <ting.liu at freescale.com>
---
 recipes-core/udev/udev-extraconf_%.bbappend | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-core/udev/udev-extraconf_%.bbappend b/recipes-core/udev/udev-extraconf_%.bbappend
index 6c2bfe2..896e75f 100644
--- a/recipes-core/udev/udev-extraconf_%.bbappend
+++ b/recipes-core/udev/udev-extraconf_%.bbappend
@@ -9,5 +9,7 @@ do_install_append_qoriq-ppc () {
 
     # skip mmc rpmb partitions
     echo "/dev/mmcblk.*rpmb" >>${D}${sysconfdir}/udev/mount.blacklist
+    # skip nbd (network block device)
+    echo "/dev/nbd*" >>${D}${sysconfdir}/udev/mount.blacklist
 }
 
-- 
1.8.3.2



More information about the meta-freescale mailing list