| 28 Jan 2023 |
@elvishjerricco:matrix.org | Hm, this is actually going to be kind of hard to write a nixos test for, because we probably can't realistically know the resume_offset= value at eval time | 21:24:46 |
@lily:lily.flowers | In reply to @elvishjerricco:matrix.org Hm, this is actually going to be kind of hard to write a nixos test for, because we probably can't realistically know the resume_offset= value at eval time Could you make it so the initrd put the value in /sys/power/resume_offset before systemd does the resume handling? That way it's not on kernel cmdline and so not needed at eval time but you'd have to generate the initrd from within the VM then. Unless someone knows a clever trick to make it easier | 22:19:36 |
@elvishjerricco:matrix.org | It'd have to be a little different than that | 22:20:47 |
@elvishjerricco:matrix.org | because the file system containing the swap file isn't actually mounted | 22:20:59 |