rbrito / usbmount

Simple set of scripts to automount removable devices for a Linux system
274 stars 88 forks source link

Not respecting /etc/fstab entries when UUID is quoted #15

Closed tarelda closed 6 years ago

tarelda commented 6 years ago

Exactly as in title. Probably needs regex modification.

mathieulj commented 6 years ago

Care to elaborate so that someone can better understand your issue?

Ex.

  1. What are you doing?
  2. What do you expect will happen?
  3. What really happens?
  4. What do you believe is a factor in the issue?
  5. What platform, distribution, software version are you using?
  6. What version of the package are you using?

From your post all I can tell is that 2 and 3 dont match and that 4 has something to do with a/some/all UUID(s) beeing quoted or not in /etc/fstab although it doesnt specify if they are even related to the expected behaviour of this package.

tarelda commented 6 years ago

So:

  1. I am trying to have one usb drive permanently mounted on boot. Thus I added entry in fstab containing UUID.
  2. I expect package to not try to mount that drive.
  3. Usbmount mounts that drive. While system also mounts it in location previously setup.
  4. When uuid in /etc/fstab is in quotes like below:
    UUID="some-uuid-here" /mountpoint defaults 0 0

    Usbmount ignores that entry. When I remove quotes all works as expected. I do it this way because, I think somewhere in the past I was taught to quote it. Also my believe is that package should handle this case or mention in docs that is invalid (despite system handling both notations).

  5. & 6. I use package built from this repo latest tagged release on latest Raspbian.
mathieulj commented 6 years ago

Thank you for the extra information, it allowed me to understand your issue and the fix was indeed a simple regex modification.