From 678d82db1c982262a073693095d34c874176bb39 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Tue, 10 Apr 2018 19:14:10 -0700 Subject: udisks: automount.sh: mount disks with no partitions 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 (cherry picked from commit f18d667c1600baad2c75be836ea9113b494d2ba0) --- recipes-support/udisks/files/automount.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-support/udisks/files/automount.sh b/recipes-support/udisks/files/automount.sh index 23e0456af..bb0b1ae91 100755 --- a/recipes-support/udisks/files/automount.sh +++ b/recipes-support/udisks/files/automount.sh @@ -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 -- cgit 1.2.3-korg