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 calls rm with wrong path #8171

Closed
edolstra opened this issue Jun 4, 2015 · 2 comments · Fixed by #8175
Closed

ZFS calls rm with wrong path #8171

edolstra opened this issue Jun 4, 2015 · 2 comments · Fixed by #8175
Labels
0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS

Comments

@edolstra
Copy link
Member

edolstra commented Jun 4, 2015

Seen while booting the NixOS installer:

machine# [    7.569436] systemd[513]: Failed at step EXEC spawning /nix/store/70cfx8gbw3hb6fix1x8gynn71dqinli5-zfs-user-0.6.4.1/bin/rm: No such file or directory
@edolstra edolstra added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 0.kind: bug Something is broken labels Jun 4, 2015
@edolstra
Copy link
Member Author

edolstra commented Jun 4, 2015

@wizeman

@wizeman
Copy link
Member

wizeman commented Jun 4, 2015

Ok, this seems to come from zfs-share.service. This file, which is included in the ZFS sources, contains the following:

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=-@bindir@/rm /etc/dfs/sharetab
ExecStart=@sbindir@/zfs share -a

I guess the problem is that @bindir@ is pointing to ZFS's bin directory.
I really have to leave my computer right now, but I will try to fix this in a few hours when I come back.

wizeman added a commit to wizeman/nixpkgs that referenced this issue Jun 4, 2015
The `zfs-share` service was trying to execute the `rm` binary, but it
was providing an invalid `/bin` path.

This should fix NixOS#8171.
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 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants