mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
udev-extraconf: allow users in disk group to write vfat filesystem
If filesystem type is vfat, change the ownership group to 'disk', and grant it with w/r/x permissions. The user which belongs to 'disk' group could write the storage. [YOCTO #4004] (From OE-Core rev: eeed0cebebc945bf62b29336b9df8e2c0a975538) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8db36429ef
commit
565956f82f
@@ -27,6 +27,17 @@ automount() {
|
|||||||
MOUNT="$MOUNT -o silent"
|
MOUNT="$MOUNT -o silent"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If filesystem type is vfat, change the ownership group to 'disk', and
|
||||||
|
# grant it with w/r/x permissions.
|
||||||
|
case $ID_FS_TYPE in
|
||||||
|
vfat|fat)
|
||||||
|
MOUNT="$MOUNT -o umask=007,gid=`awk -F':' '/^disk/{print $3}' /etc/group`"
|
||||||
|
;;
|
||||||
|
# TODO
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
if ! $MOUNT -t auto $DEVNAME "/media/$name"
|
if ! $MOUNT -t auto $DEVNAME "/media/$name"
|
||||||
then
|
then
|
||||||
#logger "mount.sh/automount" "$MOUNT -t auto $DEVNAME \"/media/$name\" failed!"
|
#logger "mount.sh/automount" "$MOUNT -t auto $DEVNAME \"/media/$name\" failed!"
|
||||||
|
|||||||
Reference in New Issue
Block a user