summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/udev/udev-extraconf/mount.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes-core/udev/udev-extraconf/mount.patch b/recipes-core/udev/udev-extraconf/mount.patch
new file mode 100644
index 0000000..5468295
--- /dev/null
+++ b/recipes-core/udev/udev-extraconf/mount.patch
@@ -0,0 +1,24 @@
+diff -Naru old/mount.sh new/mount.sh
+--- old/mount.sh 2017-07-13 14:38:01.497487772 -0500
++++ new/mount.sh 2017-07-19 17:18:08.749856242 -0500
+@@ -4,7 +4,6 @@
+ #
+ # Attempt to mount any added block devices and umount any removed devices
+
+-
+ MOUNT="/bin/mount"
+ PMOUNT="/usr/bin/pmount"
+ UMOUNT="/bin/umount"
+@@ -66,7 +65,11 @@
+ if [ -x "$PMOUNT" ]; then
+ $PMOUNT $DEVNAME 2> /dev/null
+ elif [ -x $MOUNT ]; then
+- $MOUNT $DEVNAME 2> /dev/null
++ if [[ $ID_FS_TYPE =~ fat ]] ; then
++ $MOUNT -o umask=002,gid=disk $DEVNAME 2> /dev/null
++ else
++ $MOUNT $DEVNAME 2> /dev/null
++ fi
+ fi
+
+ # If the device isn't mounted at this point, it isn't