-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
bindMount logic flaw: There is already an active mount at or below 'folder'! #198
Comments
I am encountering a similar issue and created a minimal setup to reproduce in this folder which includes:
Issue:
Relevant snippet: {
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
pinentryPackage = pkgs.pinentry-gnome3;
};
...
home.persistence."/persist/data/bphenriques" = {
allowOther = true;
directories = [
".dotfiles"
"Desktop"
"Downloads"
# Both absent: work
# Both present: break
# only nix one: works
# only systemd: breaks -> the culprit
#".local/share/nix" # trusted settings and repl history
".config/systemd" # systemd timers
".ssh"
".gnupg"
];
};
} After isolating the issue, I also tried your patch #199 but did not work for me. It is hard to debug this and impermanence does not complain 😓 edit summary:
Never persist |
FYI: Looking through the code looks like A LOT is duplicated and mountpoints aren't even properly handled (eg: parsing |
I believe I'm having the same issue here #232 due to an already existing bind matching the over-eager grep. Any status updates on this issue? |
Under my current configuration, the Impermanence module refuses to bindMount folders under my home directory because it mistakenly believes there is already and active mount.
I maintain a
/persist
folder containing all persistent data. Under this folder, I mount a few zfs filesystems.The folder fails to mount when activating home-manager, only creating an empty folder. Upon closer inspection, it would appear that the logic that determines whether the destination is already mounted is mistakenly tripping on this setup.
It appears the problem is the grep logic that takes the output of mount:
The grep statement isn't looking for whitespace at the beginning of the file path. The following seems to work:
This grep logic appears in a few places. Are there any issues with adding a check for whitespace preceding the path?
The text was updated successfully, but these errors were encountered: