BareGit

model-switcher: fix read-only /etc by downgrading ProtectSystem to 'yes'

Author: MetroWind <chris.corsair@gmail.com>
Date: Tue Jan 6 22:30:04 2026 -0800
Commit: b62c6020b7fe0a900bd1fdb0124238bd1aef3d54

Changes

diff --git a/model-switcher/model-switcher.service.example b/model-switcher/model-switcher.service.example
index e2eb2cc..146586f 100644
--- a/model-switcher/model-switcher.service.example
+++ b/model-switcher/model-switcher.service.example
@@ -23,8 +23,10 @@ ProtectHome=yes
 # Use a private /tmp and /var/tmp
 PrivateTmp=yes
 
-# Mount /usr, /boot, and /etc as read-only
-ProtectSystem=full
+# Mount /usr and /boot as read-only. 
+# We cannot use 'full' because it would make /etc read-only, preventing
+# us from updating the symlink at /etc/llama.cpp.conf.
+ProtectSystem=yes
 
 # EXCEPTION: Allow writing to /etc because the script needs to update 
 # the symlink at /etc/llama.cpp.conf.