]> code.ossystems Code Review - meta-freescale.git/commitdiff
udev-extraconf: not automount network block devices
authorTing Liu <ting.liu@freescale.com>
Fri, 1 Aug 2014 04:33:17 +0000 (12:33 +0800)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Wed, 6 Aug 2014 03:07:50 +0000 (11:07 +0800)
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>
meta-fsl-ppc/recipes-core/udev/udev-extraconf_%.bbappend

index 6c2bfe2c6430c5cd2b13ce028d7eee666206e4a9..896e75f64fe6790067b67d7f601faace2709078e 100644 (file)
@@ -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
 }