fix: pass --timezone=off when executing commands in rootfs

This commit is contained in:
Rudra Saraswat 2026-04-02 14:42:08 +01:00
parent 8e7e5cb576
commit 694eddb3e1

View file

@ -1,6 +1,5 @@
import os import os
import subprocess import subprocess
from pathlib import Path
class RootFS: class RootFS:
@ -42,6 +41,7 @@ class RootFS:
"systemd-nspawn", "systemd-nspawn",
"--quiet", "--quiet",
"--pipe", "--pipe",
"--timezone=off",
*[f"--setenv={name}={val}" for name, val in self.env.items()], *[f"--setenv={name}={val}" for name, val in self.env.items()],
"-D", "-D",
self.rootfs_path, self.rootfs_path,