[PR #9274] WIP: feat: add support for immutable distros and non-wheel/sudo users #23447

Open
opened 2026-04-19 17:00:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9274
Author: @boredsquirrel
Created: 2/21/2025
Status: 🔄 Open

Base: mainHead: additional-system-support


📝 Commits (1)

  • c550b1e feat: add support for immutable distros and non-wheel/sudo users

📊 Changes

1 file changed (+20 additions, -2 deletions)

View changed files

📝 scripts/install.sh (+20 -2)

📄 Description

Warning

work in progress, don't merge right now!

Afaik there is an issue with systemd's run0 not getting the environment variables from the original session. This could break a lot of things. A solution would be good to find.


this should allow the script to work on "immutable" distros like Fedora Atomic Desktops, VanillaOS, and more, by not only setting the bin dir (linked to /var/usrlocal/bin on ostree systems) , but also the share dir to a writable one.

It also adds more "SUDO" methods, using run0 or pkexec as fallback.

both work if the user is not in an admin group, and can authenticate with an admins password

there are no optimizations to reduce password prompts, as both pkexec and run0 have no cooldown timer. Example:

run0 /bin/sh -c '
   do something
   do something different
'

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/9274 **Author:** [@boredsquirrel](https://github.com/boredsquirrel) **Created:** 2/21/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `additional-system-support` --- ### 📝 Commits (1) - [`c550b1e`](https://github.com/ollama/ollama/commit/c550b1ee552c96e87fc819b89f8b19eb41dd23ba) feat: add support for immutable distros and non-wheel/sudo users ### 📊 Changes **1 file changed** (+20 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+20 -2) </details> ### 📄 Description > [!WARNING] > work in progress, don't merge right now! Afaik there is an issue with systemd's run0 not getting the environment variables from the original session. This could break a lot of things. A solution would be good to find. --- this should allow the script to work on "immutable" distros like Fedora Atomic Desktops, VanillaOS, and more, by not only setting the bin dir (linked to `/var/usrlocal/bin` on ostree systems) , but also the share dir to a writable one. It also adds more "SUDO" methods, using run0 or pkexec as fallback. both work if the user is not in an admin group, and can authenticate with an admins password there are no optimizations to reduce password prompts, as both pkexec and run0 have no cooldown timer. Example: ``` run0 /bin/sh -c ' do something do something different ' ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 17:00:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#23447