diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/udev/udev-extraconf/mount.sh | 8 | ||||
-rw-r--r-- | meta/recipes-core/udev/udev-extraconf_1.0.bb | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh index 2eb9affcc8..99c76b2530 100644 --- a/meta/recipes-core/udev/udev-extraconf/mount.sh +++ b/meta/recipes-core/udev/udev-extraconf/mount.sh | |||
@@ -49,8 +49,12 @@ if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ]; then | |||
49 | $MOUNT $DEVNAME 2> /dev/null | 49 | $MOUNT $DEVNAME 2> /dev/null |
50 | fi | 50 | fi |
51 | 51 | ||
52 | # If the device isn't mounted at this point, it isn't configured in fstab | 52 | # If the device isn't mounted at this point, it isn't |
53 | grep -q "^$DEVNAME " /proc/mounts || automount | 53 | # configured in fstab (note the root filesystem can show up as |
54 | # /dev/root in /proc/mounts, so check the device number too) | ||
55 | if expr $MAJOR "*" 256 + $MINOR != `stat -c %d /`; then | ||
56 | grep -q "^$DEVNAME " /proc/mounts || automount | ||
57 | fi | ||
54 | fi | 58 | fi |
55 | 59 | ||
56 | 60 | ||
diff --git a/meta/recipes-core/udev/udev-extraconf_1.0.bb b/meta/recipes-core/udev/udev-extraconf_1.0.bb index 9995899f9e..2c4a4f1976 100644 --- a/meta/recipes-core/udev/udev-extraconf_1.0.bb +++ b/meta/recipes-core/udev/udev-extraconf_1.0.bb | |||
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3 | |||
6 | 6 | ||
7 | inherit allarch | 7 | inherit allarch |
8 | 8 | ||
9 | PR = "r6" | 9 | PR = "r7" |
10 | 10 | ||
11 | SRC_URI = " \ | 11 | SRC_URI = " \ |
12 | file://automount.rules \ | 12 | file://automount.rules \ |