VfatDiskMount: fix vfat UUID string
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Wed, 26 Jun 2013 14:28:13 +0000 (17:28 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Wed, 26 Jun 2013 14:28:13 +0000 (17:28 +0300)
commit3577b518715c29175c5f517c6f3cf7a70b0e3d39
tree59459d658bdf3e8bec6d6dbe1cecc1d9bf1e31a4
parent73adc13bc0037aaf03409ae3e0d5f3e32a68af2f
VfatDiskMount: fix vfat UUID string

The right format for the UUID string for vfat in Linux is 'XXXX-XXXX'. This is
how it can be used in fstab, for example (UUID='XXXX-XXXX'). Also, Linux udev
creates /dev/disk/by-uuid/XXXX-XXXX entries for vfat volumes.

The problem in VfatDiskMount is that it provides it in the 'XXXXXXXX' form
(without dash). However, mkfs.vfat does not like the dash, and this is why we
did not have it, I guess.

This patch fixes the situation and makes VfatDiskMount class expose UUID in a
fstab-friendly format. This makes --fstab-entry=uuid option also work for VFAT
volumes (I tested this).

Change-Id: I1d676e3707ef1777df910273381fe4437b415f41
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
mic/utils/fs_related.py