Pass timezone through to the VM
What a way to discover that this was missing- PipeWire camera was freezing unless something on the host was already streaming it… gstclock.c:1086:gst_clock_get_internal_time:<pipewireclock0> internal time 1:01:04.622699903 gstclock.c:1129:gst_clock_get_time:<pipewireclock0> adjusted time 5123776:20:12.866176008 Well, that wasn't even caused by the TZ but it made me think to fix it.. NOTE for local dev, rebuild micro-activate now
This commit is contained in:
parent
322b6efc1c
commit
8c3878f117
3 changed files with 6 additions and 1 deletions
|
|
@ -71,6 +71,7 @@ fn main() -> Result<(), std::io::Error> {
|
|||
//
|
||||
// Let's preserve the fixed passed-in files and set up the NixOS symlinks in the new mount.
|
||||
let resolv_conf = std::fs::read("/run/resolv.conf")?;
|
||||
let localtime = std::fs::read("/run/localtime")?;
|
||||
assert_eq!(
|
||||
unsafe {
|
||||
mount(
|
||||
|
|
@ -83,6 +84,7 @@ fn main() -> Result<(), std::io::Error> {
|
|||
},
|
||||
0
|
||||
);
|
||||
std::fs::write("/run/localtime", &localtime)?;
|
||||
std::fs::write("/run/resolv.conf", &resolv_conf)?;
|
||||
std::fs::write("/run/machine-id", &gen_machine_id())?;
|
||||
std::os::unix::fs::symlink(&closure, "/run/current-system")?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue