SlugOS 5.0: udev - mount.sh script needs to use blkid to automatically
authorMike Westerhof <mwester@dls.net>
Fri, 29 Aug 2008 16:51:18 +0000 (16:51 +0000)
committerMike Westerhof <mwester@dls.net>
Fri, 29 Aug 2008 16:51:18 +0000 (16:51 +0000)
blacklist members of a RAID array (lest we automount them, which may
happen, at least with the busybox mount command).

packages/udev/files/slugos/mount.sh
packages/udev/udev_100.bb

index 11714c1..0990a7e 100644 (file)
@@ -10,6 +10,12 @@ PMOUNT="/usr/bin/pmount"
 UMOUNT="/bin/umount"
 name="`basename "$DEVNAME"`"
 
+if ( blkid "$DEVNAME" | grep -q 'TYPE="mdraid"' )
+then
+       logger "udev/mount.sh" "[$DEVNAME] is a member of an array, ignoring"
+       exit 0
+fi
+
 for line in `cat /etc/udev/mount.blacklist | grep -v ^#`
 do
        if ( echo "$DEVNAME" | grep -q "$line" )
index c8840e1..1cd3c41 100644 (file)
@@ -9,7 +9,7 @@ used to detect the type of a file system and read its metadata."
 DESCRIPTION_libvolume-id-dev = "libvolume_id development headers, \
 needed to link programs with libvolume_id."
 
-PR = "r11"
+PR = "r12"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
           file://noasmlinkage.patch;patch=1 \