From 8f323cdaf6fca553d2e01ae4a9be7276ed861c35 Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 19 Jul 2017 17:21:49 -0500 Subject: Users in the disk group should be able to write fat/vfat by default --- recipes-core/udev/udev-extraconf/mount.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 recipes-core/udev/udev-extraconf/mount.patch (limited to 'recipes-core') 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 -- cgit v1.2.3