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

Checking if tmpfs is already mounted #684

Open
niklasravnsborg opened this issue Nov 26, 2024 · 0 comments
Open

Checking if tmpfs is already mounted #684

niklasravnsborg opened this issue Nov 26, 2024 · 0 comments

Comments

@niklasravnsborg
Copy link

I'm trying to use this file to check if the tmpfs is mounted on sops-nix for darwin: https://github.com/Mic92/sops-nix/blob/3433ea14fbd9e6671d0ff0dd45ed15ee4c156ffa/pkgs/sops-install-secrets/darwin.go#L85

But as far as I can see this file is created in the tmpfs itself which makes it immune to file watchers. This doesn't trigger, when the secrets.d/ is first mounted.

${pkgs.fswatch}/bin/fswatch -1 -L /run/secrets.d/sops-nix-secretfs

How was this intended to be used? Might it make sense to create this file outside of the tmpfs to allow a file watcher to detect it?

Best :)

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

1 participant