This commit is contained in:
parent
3ae066d593
commit
8a4e24ca20
2 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue