fossasia/susi_installer

Enable USB automount

alok760 opened this issue · 7 comments

Describe the bug

A clear and concise description of what the bug is.

  • raspbian lite(on which susibian is based) doesn't automount USB drives.
  • Mounting is required in order for the media-daemon to work for USB audio playback

Expected behaviour

A clear and concise description of what you expected to happen.

  • Automount USB drives

In old SUSI Linux codebase, as far as I remember, the "media daemon" already takes care of mounting USB device. If it doesn't work now, it is just something broken and has to fix, not to introduce more software to the stack (and making mess).

If you really need automount for removable disks, no matter whether "media daemon" exists, use udisks, instead of usbmount.

Indeed ... the meda_daemo is broken ... I will repair it. The path have changed and so it doesn't start... wait a moment.

Ok, I pushed some changes. I need to leave now but tonight I will verify whether it works or not.

@alok760 I have reverted the usbmount changes. Indeed, we don't need double work. Please let us try to fix the media_daemon, it does already skill generation if it works properly.

@hongquan Thanks for pointing me at this! TIll now I haven't looked into the media daemon, will fix that soon.

Please see https://github.com/norbusan/susi_installer/tree/media-daemon-rework where I rework the partition reading and mounting in auto_skill.py

Look OK.

Just fixed an occasional crash when at the beginning the soft volume is bigger than the hw volume. Now it talks to me again ;-)

Send PR which should close this issue. What still needs to be improved is the auto-skill generation