aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-support/udisks
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-04-10 19:14:10 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-04-10 19:14:10 -0700
commitf18d667c1600baad2c75be836ea9113b494d2ba0 (patch)
tree97e5356e584908c2cfc58f3e29d95fdebfbd02e0 /recipes-support/udisks
parent23997f466c5c2a4b0581a3cb5011caff264eb4eb (diff)
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 <matt.ranostay@konsulko.com>
Diffstat (limited to 'recipes-support/udisks')
-rwxr-xr-xrecipes-support/udisks/files/automount.sh2
1 files changed, 1 insertions, 1 deletions
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