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: Fix samba freeform settings and 2.1 build #340165

Merged
merged 3 commits into from
Sep 7, 2024

Conversation

ElvishJerricco
Copy link
Contributor

@ElvishJerricco ElvishJerricco commented Sep 6, 2024

Description of changes

Fix zfs tests after #302681, and 2.1 after #339696

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Sep 6, 2024
@ElvishJerricco
Copy link
Contributor Author

@ofborg test zfs

@ElvishJerricco ElvishJerricco force-pushed the zfs-test-samba-settings branch from a1ff301 to 5c7c22f Compare September 6, 2024 19:04
@ElvishJerricco ElvishJerricco mentioned this pull request Sep 6, 2024
13 tasks
@ElvishJerricco ElvishJerricco changed the title nixos/tests/zfs: Fix samba freeform settings zfs: Fix samba freeform settings and 2.1 build Sep 6, 2024
@ElvishJerricco
Copy link
Contributor Author

@ofborg test zfs

Copy link
Member

@amarshall amarshall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully ran nix-build -A zfs_2_1.passthru.tests -A zfs_2_2.passthru.tests

# Add Bash completions.
install -v -m444 -D -t $out/share/bash-completion/completions contrib/bash_completion.d/zfs
(cd $out/share/bash-completion/completions; ln -s zfs zpool)
''}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed it seems the completions get installed in current 2.2 without needing to manually install.

installerBoot = (import ./installer.nix { }).separateBootZfs;
installer = (import ./installer.nix { }).zfsroot;
installerBoot = (import ./installer.nix { inherit system; }).separateBootZfs;
installer = (import ./installer.nix { inherit system; }).zfsroot;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this now needed?

Copy link
Contributor Author

@ElvishJerricco ElvishJerricco Sep 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has always been needed when building with nixpkgs as a flake. It just failed to eval :P I should separate this into another commit. Will do.

@ElvishJerricco ElvishJerricco force-pushed the zfs-test-samba-settings branch from f6fc71b to cf572e0 Compare September 6, 2024 20:08
@ElvishJerricco
Copy link
Contributor Author

@ofborg test zfs

@adamcstephens
Copy link
Contributor

FYI, you can add simple edits to an existing ofborg comment and it'll be reprocessed.

@ofborg ofborg bot requested a review from amarshall September 6, 2024 22:04
@ElvishJerricco ElvishJerricco merged commit 6ca18ce into NixOS:master Sep 7, 2024
29 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 1-10 10.rebuild-linux: 11-100
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants