-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails with mkdir: cannot create directory: No such file or directory #154
Comments
Are you sure your /persist directory exists at the time of root creation? You should ensure "/persist" is loaded and mounted before impermanence gets to it, otherwise bind mounts fail. |
Got the same issue here. Before running nixos-install the /mnt/persist/system directory is basically empty. Install script fails to create directory if the root of target path does not exist. Also this causes further complications during first boot since the system tries to mount binds for the non-existent directories and this halts the whole boot process. Tmarkov's solution looks like the proper fix for that. |
@talyz i tracked down the MVP of the nixos-anywhere provisioning issue - seems to be related to /etc/ssh keys not existing until the first boot... this issue lists similar keys being persisted... the MVP of the issue is https://github.com/visualphoenix/nixos-anywhere-disko-impermanence-mvp |
@visualphoenix That sounds like a different issue than this. Could you open a new one for it? |
#193 should have a proper solution for this, hopefully. Please try it out! |
I use impermanence with the following config:
When installing on a new system, I create a partition, mount it on
/persist
, and run nixos-install. However. this fails because when impermanence tries to create the persistence directories, it fails withNo such file or directory
errors.I have fixed it like this - I'm nit sure though if this is a problem with impermanence or if I'm doing something wrong.
The text was updated successfully, but these errors were encountered: