summaryrefslogtreecommitdiff
path: root/packages/udev/files
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2008-08-29 16:51:18 +0000
committerMike Westerhof <mwester@dls.net>2008-08-29 16:51:18 +0000
commit1758389618b9d52af94c8a7ba40df3e63b707998 (patch)
tree7444f628ebd13266ba5a5eed39a8b170e35aa824 /packages/udev/files
parent5ddd65ca331ae09bcf5505b0a7836a83aa1666ca (diff)
SlugOS 5.0: udev - mount.sh script needs to use blkid to automatically
blacklist members of a RAID array (lest we automount them, which may happen, at least with the busybox mount command).
Diffstat (limited to 'packages/udev/files')
-rw-r--r--packages/udev/files/slugos/mount.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/udev/files/slugos/mount.sh b/packages/udev/files/slugos/mount.sh
index 11714c1390..0990a7e85a 100644
--- a/packages/udev/files/slugos/mount.sh
+++ b/packages/udev/files/slugos/mount.sh
@@ -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" )