Skip to content
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

fusermount and sleep undefined #32

Closed
energizah opened this issue Dec 28, 2020 · 7 comments
Closed

fusermount and sleep undefined #32

energizah opened this issue Dec 28, 2020 · 7 comments

Comments

@energizah
Copy link

https://github.com/nix-community/impermanence/blob/master/home-manager.nix#L92-L100 uses commands fusermount and sleep but they are not in scope, producing an error, Command not found.

@talyz
Copy link
Collaborator

talyz commented Jan 1, 2021

That's odd, they should be put in the environment by https://github.com/nix-community/impermanence/blob/master/home-manager.nix#L122. sleep is in the coreutils package and the fusermount wrapper should be in /run/wrappers/bin by default. Do you have a more detailed log you can share?

@energizah
Copy link
Author

energizah commented Jan 1, 2021

Sure, here are logs from journald:

qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2784]: /nix/store/qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings: line 4: fusermount: command not found
qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2788]: /nix/store/qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings: line 12: sleep: command not found
qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2793]: /nix/store/qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings: line 4: fusermount: command not found
qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2798]: /nix/store/qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings: line 12: sleep: command not found
qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2804]: /nix/store/qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings: line 4: fusermount: command not found
qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2812]: /nix/store/qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings: line 12: sleep: command not found
qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2816]: /nix/store/qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings: line 4: fusermount: command not found
qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2823]: /nix/store/qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings: line 12: sleep: command not found
qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2831]: /nix/store/qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings: line 4: fusermount: command not found
qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2838]: /nix/store/qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings: line 12: sleep: command not found
qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2845]: /nix/store/qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings: line 4: fusermount: command not found
qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2780]: Couldn't perform regular unmount of /home/user/.local/share/keyrings. Attempting lazy unmount.
qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings[2854]: /nix/store/qc1zk8asxgh5nzjc5ni3h5f3c6k1zchv-unmount-bindMount-persist-home-user-local-share-keyrings: line 10: fusermount: command not found
systemd[2712]: bindMount-persist-home-user-local-share-keyrings.service: Control process exited, code=exited, status=127/n/a

@talyz
Copy link
Collaborator

talyz commented Jan 2, 2021

Based on the line numbers, it looks like you're using a pretty old commit. If so, can you try the latest and see if that solves the issue?

@energizah
Copy link
Author

I think I'm on 2cda5cd . The errors are during stopScript, e.g. https://github.com/nix-community/impermanence/blob/master/home-manager.nix#L92

@talyz
Copy link
Collaborator

talyz commented Jan 2, 2021

Note that writeShellScript adds an additional line at the top of the script, so the first line in the code would be line 2 of the resulting script.

If I run env -u PATH /nix/store/l6z18v8nd1bxyha2gnkzyncl7wpkfwb4-unmount-bindMount--persistent-home-talyz-Downloads-, built using the latest commit, I get the following output:

/nix/store/l6z18v8nd1bxyha2gnkzyncl7wpkfwb4-unmount-bindMount--persistent-home-talyz-Downloads-: line 5: fusermount: command not found
/nix/store/l6z18v8nd1bxyha2gnkzyncl7wpkfwb4-unmount-bindMount--persistent-home-talyz-Downloads-: line 13: sleep: command not found

The line numbers would have changed by +1 in b6181bd and then stayed the same, suggesting that you're on a commit prior to it.

@talyz
Copy link
Collaborator

talyz commented Jan 23, 2021

Any news? Can we close this? :)

@energizah
Copy link
Author

I haven't seen this in a while so I'll close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants