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

ZFS zedlets are run without required binaries #367716

Open
sefidel opened this issue Dec 23, 2024 · 0 comments
Open

ZFS zedlets are run without required binaries #367716

sefidel opened this issue Dec 23, 2024 · 0 comments
Labels
0.kind: bug Something is broken

Comments

@sefidel
Copy link
Member

sefidel commented Dec 23, 2024

Describe the bug

Zedlets seems to be run with a hard-coded path of /usr/bin:/bin:/usr/sbin:/sbin, and NixOS does not have any binaries there by default. Since tasks like sending a push notification requires external binaries like curl, they all fail.

Steps To Reproduce

Steps to reproduce the behavior:

  1. set services.zfs.zed.settings.ZED_NTFY_TOPIC to a random value
  2. *-notify.sh zedlets fail with exit=1
  3. error seems to occur on a call to zed_check_cmd (both sed and curl is not found, code=2)

Expected behavior

I expect various notify tasks that requires external binaries like curl to succeed.

Screenshots

Additional context

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.66, NixOS, 25.05 (Warbler), 25.05.20241219.d70bd19
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.25.3
  • nixpkgs: /etc/nixpkgs/channels/nixpkgs

Notify maintainers

@amarshall


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@sefidel sefidel added the 0.kind: bug Something is broken label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant