fix
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2025-01-11 20:09:37 +01:00
parent 3ae066d593
commit 8a4e24ca20
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 3 additions and 2 deletions

View file

@ -20,7 +20,7 @@ pub fn setup_ollama(conf: &OllamaConfig) {
let mut ollama_server = std::process::Command::new("arch-chroot")
.arg("/mnt")
.arg("runuser -u ollama -- env OLLAMA_MODELS=/var/lib/ollama HOME=/var/lib/ollama /usr/bin/ollama serve")
.stdout(Stdio::piped())
.stdout(std::process::Stdio::piped())
.spawn()
.expect("Failed to start ollama server");

View file

@ -33,7 +33,8 @@ pub fn setup_virtualization(conf: &InstallConfig) {
/// Setup guest utils if running inside a VM
pub fn setup_vm() {
let is_vm = run_command(&["systemd-detect-virt", "--vm"], None, false)
let res = run_command(&["systemd-detect-virt", "--vm"], None, false);
let is_vm = res
.0
.trim();