[yocto] [meta-fsl-ppc 16/16] udev: do not automount block devices
b19537 at freescale.com
b19537 at freescale.com
Wed Sep 12 00:06:30 PDT 2012
From: Chunrong Guo <b40290 at freescale.com>
kernel can’t boot up with extend partition in HDD
FILESEXTRAPATHS_prepend is the right variable to extend file search path
Signed-off-by: Chunrong Guo <b40290 at freescale.com>
Signed-off-by: Zhenhua Luo <b19537 at freescale.com>
---
recipes-append/udev/files/local.rules | 4 +++-
recipes-append/udev/udev_164.bbappend | 4 ++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/recipes-append/udev/files/local.rules b/recipes-append/udev/files/local.rules
index 9c134ef..0b6cfef 100644
--- a/recipes-append/udev/files/local.rules
+++ b/recipes-append/udev/files/local.rules
@@ -15,6 +15,8 @@
KERNEL=="nbd*", GOTO="persistent_storage_end"
+SUBSYSTEM=="block", ENV{DEVTYPE}=="partition" ,GOTO="nomountblock"
+
# Media automounting
SUBSYSTEM=="block", ACTION=="add" RUN+="/etc/udev/scripts/mount.sh"
SUBSYSTEM=="block", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh"
@@ -36,4 +38,4 @@ ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0"
LABEL="persistent_storage_end"
-
+LABEL="nomountblock"
diff --git a/recipes-append/udev/udev_164.bbappend b/recipes-append/udev/udev_164.bbappend
index 7277e47..bff4689 100644
--- a/recipes-append/udev/udev_164.bbappend
+++ b/recipes-append/udev/udev_164.bbappend
@@ -1,4 +1,4 @@
-FILEXTRAPATHS_prepend := "${THISDIR}/files:"
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
-PR .= "+${DISTRO}.0"
+PR .= "+${DISTRO}.1"
--
1.7.9.5
More information about the yocto
mailing list