Comments (8)
I had not realized I had to manually create the folders in /persist
first. After I did that, it worked. Closing this issue...
from impermanence.
Hi! Thank you for reporting this!
You should not have to create the directory structure in your persistence root. It should create the directory for you with the message
Warning: Source directory
dirname
does not exist; it will be created for you. Make sure the permissions are correct!
This is a bug in the create-directories.bash
script. realpath
cannot be passed a path to a file in a nonexistent directory.
from impermanence.
I see. The message you mention appears, indeed, but the script still fails. Perhaps it's something to do with the order of operations? realpath
should probably be called after the directory is created, I'm guessing.
from impermanence.
Can you try #37? It should solve your issue.
from impermanence.
It did solve that previous issue; however, the files inside the directories are not copied to the persistence root (for instance, configuration.nix
in /etc/nixos/
).
from impermanence.
Great! I'll close this now, then.
No, they wouldn't be - we never copy or move files into persistent storage. If you want the files to exist in persistent storage before the bind mounts and links are set up, you need to create them there to begin with.
from impermanence.
Oh, so this bug was just about the directory structure then. I see. Thanks for the quick fix!
from impermanence.
Yes, exactly. No problem!
from impermanence.
Related Issues (20)
- Regression after using escapeSystemdPath HOT 3
- `user.*.directories` assertion is displaying incorrectly`
- Issues with bindfs: no entry in /etc/mtab HOT 1
- Persisting Steam breaks any game within it and also fails shutdown HOT 4
- Boot does not revoke chmod permissions HOT 1
- [REQUEST] Declare `something.impermanence.enable` option for integration with other modules and easy way to disable impermanence HOT 1
- Handle bind mount of directory that already has content HOT 2
- `nixos-rebuild` fails due to the symlink, Impermanence created
- Best practice to split configuration HOT 1
- missing `x-gvfs-hidein` in mount
- Strategies to deal with `renameat(3)` on persisted files HOT 1
- Infinite recursion error when persisting anything in /var/ HOT 1
- Symlinks created via the home-manager module are broken HOT 1
- The importance of persisting `/var/lib/nixos` is not documented HOT 2
- Cannot use `users.users` without infinite recursion
- Empty list for home.persistence directories does not build HOT 3
- home-manager module cannot mount files to /persist. permission denied. HOT 1
- Root cannot access directories persisted with home-manager HOT 1
- Opt-in Mirror Mode
- Impermanence issues with SSH when provisioning with nixos-anywhere + disko + flakes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from impermanence.