Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.5.6
-
Fix Version/s: 0.9.8
-
Component/s: Chef Client, Providers, Resources
-
Labels:None
-
Triage Status:Triaged
Description
If LABEL=xyz is provided in the device attribute the :mount action fails if the device is already mounted.
This happens because the mount command only reports device names and not labels and uuid's
Maybe one could add a 'label' and 'uuid' attribute
With label one could use -L for mounting, -l for checking mount and write LABEL=xyz to fstab
With uuid one could use -U for mounting, and write UUID=xyz to fstab. Unfortunately there is no checking switch for uuid devices
A workaround could be listing /dev/disks/by-uuid and looking at the symlink.
ls -la /dev/disk/by-uuid/1e1b7e8e-6e73-4f5c-beb9-516a0570ff7d
lrwxrwxrwx 1 root root 9 2009-03-20 13:04 /dev/disk/by-uuid/1e1b7e8e-6e73-4f5c-beb9-516a0570ff7d -> ../../sda
Miguel
Or just use findfs to translate the label and uuid to devices:
mail2:~# findfs LABEL=volume2
/dev/sdb