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

nixos/znapzend: fix when no previous zetup #35073

Merged
merged 1 commit into from Mar 25, 2018

Conversation

infinisil
Copy link
Member

When the znapzend module was enabled for the first time with pure =
true; then the list of previous entries is empty, but xargs still tried
to execute a znapzendzetup delete command with no arguments, which made
it fail

Motivation for this change

This was reported by ottidmes on IRC, who was trying to use the module and got an error.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

When the znapzend module was enabled for the first time with pure =
true; then the list of previous entries is empty, but xargs still tried
to execute a znapzendzetup delete command with no arguments, which made
it fail
@infinisil
Copy link
Member Author

Was confirmed to work by ottidmes and me

@infinisil
Copy link
Member Author

Ping @dermetfan @otwieracz @orivej

@otwieracz
Copy link
Contributor

Sorry, I am no longer able to maintain here - at this moment I have no working NixOS/ZFS setup.

@infinisil
Copy link
Member Author

Pinging @7c6f434c @Mic92 @gebner @matthewbauer, this is a trivial change without which the znapzend module doesn't work for new users, would like to have it merged. Should be applied to 18.03 as well.

@7c6f434c
Copy link
Member

OK, I cannot test it but it makes a lot of sense.

@7c6f434c 7c6f434c merged commit 296dca0 into NixOS:master Mar 25, 2018
7c6f434c added a commit that referenced this pull request Mar 25, 2018
nixos/znapzend: fix when no previous zetup

(cherry picked from commit 296dca0)
@7c6f434c
Copy link
Member

Picked

@infinisil
Copy link
Member Author

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

4 participants