diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-04-10 19:14:10 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-05-23 00:40:09 +0000 |
commit | 678d82db1c982262a073693095d34c874176bb39 (patch) | |
tree | 5f53d297440bb0eeb73e6a4175cc4da99155c015 /recipes-support | |
parent | 5a3298db2635c88f39ebca625c97ea3d62612876 (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>
(cherry picked from commit f18d667c1600baad2c75be836ea9113b494d2ba0)
Diffstat (limited to 'recipes-support')
-rwxr-xr-x | recipes-support/udisks/files/automount.sh | 2 |
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 |