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

Submitted by Ting Liu on Aug. 1, 2014, 4:33 a.m.

Details

Message ID 1406867598-44496-3-git-send-email-ting.liu@freescale.com
State Accepted, archived
Headers show

Commit Message

Ting Liu Aug. 1, 2014, 4:33 a.m.
From: Ting Liu <ting.liu@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@freescale.com>
---
 recipes-core/udev/udev-extraconf_%.bbappend | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

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
 }