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

login
register
mail settings
Submitter Ting Liu
Date Aug. 1, 2014, 4:33 a.m.
Message ID <1406867598-44496-3-git-send-email-ting.liu@freescale.com>
Download mbox | patch
Permalink /patch/77055/
State Accepted
Headers show

Comments

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

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
 }