persist ubuntu updates and added packages

How can i keep the updates ive applied and packages I've added in the included terminal. after reboot all the changes i've made, except the files in the /home/coder directory are reverted
6 Replies
Codercord
Codercord3w ago
<#1358585191974703104>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Atif
Atif2w ago
edit you templates to add more volumes to persists other directories You may want to persist /usr maybe. as most tools gets installed into /usr/bin or /usr/lib/bin
Adrian
Adrian2w ago
When I tried persisting the /usr directory in Kubernetes, the workspace failed to start with the error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "sh": executable file not found in $PATH: unknown. It looks like mounting /usr directly overrides essential binaries, including sh, causing the container to fail. Any ideas on how to persist packages without replacing critical system files? I also tried with /usr/bin but got the same error
H0m3L@bb3r
H0m3L@bb3rOP2w ago
I more likely want to persist "/" is there a way to do this ? I don't want to lose anything in this particular workspace when its restarted
Phorcys
Phorcys2w ago
not really when using Docker, everything is ephemeral, that is just due to how containerized workflows are if you want your installed packages to persist, either bake them into the template or install them at every start via a script (e.g using our personalize module)
Codercord
Codercord4d ago
@Phorcys closed the thread.

Did you find this page helpful?