Closed avanderbergh closed 1 year ago
I believe #88 might help. The force
param might be used, no?
@otavio Thanks!
I believe #88 might help. The
force
param might be used, no?
Yes, I believe that might help.
Perhaps I misunderstood how I needed to set this up in the first place. I thought it would handle moving the files to the persisted volume for me. I manually moved the files to the persisted volume before building and it works great. Perhaps some clearer documentation on how to set this up wold help?
BTW, I ended up adding a passwordFile
to my config and using immutable users.
This is the config I ended up with.
environment.persistence."/persist" = {
directories = [
"/etc/NetworkManager/system-connections"
"/etc/secureboot"
"/var/lib/bluetooth"
"/var/lib/boltd/"
"/var/lib/colord"
"/var/lib/systemd/coredump"
"/var/lib/upower"
];
files = [
"/var/lib/NetworkManager/secret_key"
"/var/lib/NetworkManager/seen-bssids"
"/var/lib/NetworkManager/timestamps"
];
};
Yes, this is indeed how it's supposed to work. The documentation should be clearer on this.
I've been trying to set up impermanence, but I'm running into this error. Am I supposed to manually move the file to
/persist/...
before activation?Here's my config.
Looking at
mount-file.bash
I can see where this error is coming from and it looks to me here that it does not expect the file you want to persist to already exist? Am I missing something here?