[GH-ISSUE #8580] FHS Violation #83229

Closed
opened 2026-05-09 17:32:36 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @rgammans on GitHub (Jan 25, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8580

What is the issue?

The Linux FHS has this to say about /usr/

/usr is shareable, read-only data. That means that /usr should
be shareable between various FHS-compliant hosts and must not be written to.
Any information that is host-specific or varies with time is stored elsewhere.

However, Lama puts the service 'home' directory under /usr, and stores model file there, but /usr could be mounted read-only during normal operations. The FHS would require /var/ for the mode files, etc., that normally go in the service home directory.

OS

Linux

GPU

No response

CPU

No response

Ollama version

0.5.7

Originally created by @rgammans on GitHub (Jan 25, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8580 ### What is the issue? The Linux FHS has this to say about /usr/ ``` /usr is shareable, read-only data. That means that /usr should be shareable between various FHS-compliant hosts and must not be written to. Any information that is host-specific or varies with time is stored elsewhere. ``` However, Lama puts the service 'home' directory under /usr, and stores model file there, but /usr could be mounted read-only during normal operations. The FHS would require /var/ for the mode files, etc., that normally go in the service home directory. ### OS Linux ### GPU _No response_ ### CPU _No response_ ### Ollama version 0.5.7
GiteaMirror added the bug label 2026-05-09 17:32:36 -05:00
Author
Owner

@imbev commented on GitHub (Jan 29, 2025):

This currently prevents Ollama installation on HeliumOS and other atomic distributions because /usr/share is immutable.

2ef3c803a1/scripts/install.sh (L118)
2ef3c803a1/discover/amd_linux.go (L439)
2ef3c803a1/docs/linux.md (L58)
2ef3c803a1/docs/faq.md (L190)
2ef3c803a1/docs/troubleshooting.md (L71)

<!-- gh-comment-id:2621866778 --> @imbev commented on GitHub (Jan 29, 2025): This currently prevents Ollama installation on HeliumOS and other atomic distributions because /usr/share is immutable. https://github.com/ollama/ollama/blob/2ef3c803a151a0a9b1776c9ebe6a7e86b3971660/scripts/install.sh#L118 https://github.com/ollama/ollama/blob/2ef3c803a151a0a9b1776c9ebe6a7e86b3971660/discover/amd_linux.go#L439 https://github.com/ollama/ollama/blob/2ef3c803a151a0a9b1776c9ebe6a7e86b3971660/docs/linux.md?plain=1#L58 https://github.com/ollama/ollama/blob/2ef3c803a151a0a9b1776c9ebe6a7e86b3971660/docs/faq.md?plain=1#L190 https://github.com/ollama/ollama/blob/2ef3c803a151a0a9b1776c9ebe6a7e86b3971660/docs/troubleshooting.md?plain=1#L71
Author
Owner

@imbev commented on GitHub (Jan 29, 2025):

I suggest /var/lib/ollama as the replacement for /usr/share/ollama.

<!-- gh-comment-id:2621876837 --> @imbev commented on GitHub (Jan 29, 2025): I suggest `/var/lib/ollama` as the replacement for /usr/share/ollama.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#83229