udisks: automount.sh: mount disks with no partitions 59/13759/1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 11 Apr 2018 02:14:10 +0000 (19:14 -0700)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 11 Apr 2018 02:14:10 +0000 (19:14 -0700)
Some media disks may not have a partition table and only have a
file systems (i.e. /dev/sdX vs /dev/sdX1) allow automounting of those.

Change-Id: I5b38264fb4c11f945e811a700fa00adf74011ec1
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
recipes-support/udisks/files/automount.sh

index 23e0456..bb0b1ae 100755 (executable)
@@ -7,7 +7,7 @@ pathtoname() {
 MOUNT_OPTIONS="ro,flush"
 
 rmdir /media/* &> /dev/null || true
-for DEVNAME in $(udisks --enumerate-device-files|grep -e sd[a-z][0-9]); do
+for DEVNAME in $(udisks --enumerate-device-files|grep -e sd[a-z]); do
        udisks --mount-options $MOUNT_OPTIONS --mount $DEVNAME
 done