-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Report: Violation of FHS by storing variable data under /usr/share? #393
Comments
In a way, the data stored by Supervisor is "Architecture-indepenet (shared) data". However, when reading further the FHS goes a bit more into details what is meant by share data:
Typically these are graphics, icons, and other static data files etc. So I agree the non-static user data is misplaced there.
FWIW, the Supervisor does use the file hierarchy somewhat liberally: The individual containers (Home Assistant Core, Add-ons etc.) do have bind mounts to But granted, for Supervised installation which is supposed to run on regular Debian operating system, which does follow the FHS, following FHS does seem sensible. I think I'd go for Btw, as stated in the README, it is possible to change the default using |
@agners Hi Stefan, many thanks for not rejecting my issue right away and for taking the time to phrase a comprehensive reply. I really appreciate it. :-) If you look up one step in the FS hierarchy, then TBH I don't have that much experience with software living under Indeed, my point is about providing "sane" defaults. I must admit that when I set this up about two (or three?) months ago, I was a complete newbie to HA, it was my first contact ever with it. I was simply too overwhelmed to even think about this point when I ran the install script. Now that I start observing minor issues to be investigated and fixed, I looked into logfiles and noticed the improper location of some files. |
Since the whole Supervisor data folder is a mixed bag of data, we can't really store it at the "perfect" location. And separating things in the Supervisor data folder would be a huge undertaking at this point, for questionable benefit in the end. So neither But @ikifar2012 any thoughts on this? |
Totally agree that Reference for the FHS standard if anyone is curious and wants to read: |
OS Version
Ubuntu 24.04.1 LTS
System Information
Linux server. 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
What happened?
I understand that my choice of an OS is unsupported, but please note that installing HA Supervised under a supported OS would result in the very same problem (as it is "by design"), so I'm kindly asking you to make an exception and consider this report anyway.
This is a duplicate of an issue I filed in the wrong project previously.
Describe the issue you are experiencing
It somehow feels wrong that frequently-modified data is stored under
/usr/share
, more specifically under/usr/share/hassio/homeassistant
, such as various SQLite databases, logfiles.To me that seems a clear violation of the Filesystem Hierarchy Standard that says
/usr/share
is meant for "Architecture-independent (shared) data."I believe most of the data should go under
/var/lib/homeassistant/
or/var/log/homeassistant/
.Steps to reproduce the issue
Machine Type
generic-x86-64
Installer output
Relevant log output
ADR
Code of Conduct
The text was updated successfully, but these errors were encountered: