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 root breaks documentation.nixos.includeAllModules #62602

Closed
Shados opened this issue Jun 3, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@Shados
Copy link
Contributor

commented Jun 3, 2019

Issue description

Having a ZFS root filesystem mount set somehow breaks NixOS manual builds with documentation.nixos.includeAllModules.

Steps to reproduce

nix-build '<nixpkgs/nixos>' --arg configuration ./minimal.nix -A config.system.build.manual --show-trace --no-out-link --builders ''
error: while evaluating the attribute 'buildCommand' of the derivation 'nixos-manual-html' at /nix/store/v3dq4c5n9w6cbfmgmadpdh28s2bdrzym-nixos-19.09pre181231.aa440d87866/nixos/pkgs/build-support/trivial-builders.nix:7:14:
while evaluating the attribute 'buildCommand' of the derivation 'manual-olinkdb' at /nix/store/v3dq4c5n9w6cbfmgmadpdh28s2bdrzym-nixos-19.09pre181231.aa440d87866/nixos/pkgs/build-support/trivial-builders.nix:7:14:
while evaluating the attribute 'buildCommand' of the derivation 'nixos-manual-combined' at /nix/store/v3dq4c5n9w6cbfmgmadpdh28s2bdrzym-nixos-19.09pre181231.aa440d87866/nixos/pkgs/build-support/trivial-builders.nix:7:14:
while evaluating the attribute 'buildCommand' of the derivation 'generated-docbook' at /nix/store/v3dq4c5n9w6cbfmgmadpdh28s2bdrzym-nixos-19.09pre181231.aa440d87866/nixos/pkgs/build-support/trivial-builders.nix:7:14:
while evaluating the attribute 'buildCommand' of the derivation 'options-db.xml' at /nix/store/v3dq4c5n9w6cbfmgmadpdh28s2bdrzym-nixos-19.09pre181231.aa440d87866/nixos/pkgs/build-support/trivial-builders.nix:7:14:
in 'toFile': the file 'options.xml' cannot refer to derivation outputs, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/doc/manual/default.nix:80:16

minimal.nix contents:

{ config, lib, pkgs, ... }:
{
  fileSystems = {
    "/" = {
      fsType = "zfs";
    };
  };
  documentation.nixos = {
    enable = true;
    includeAllModules = true;
  };
}

This works fine if it is any mountpoint other than / (of the small set I tested, anyway :p), and any other fsType (ok, I admit, I only tried like four), or if includeAllModules is set to false. nixpkgs is nixos-unstable (nixos-19.09pre181231.aa440d87866).

@Shados Shados referenced this issue Jun 3, 2019

Merged

nixos/grub: Add defaultText for font option #62606

5 of 10 tasks complete
@Shados

This comment has been minimized.

Copy link
Contributor Author

commented Jun 3, 2019

Turned out to be less annoying to track down where the failure was than I expected.

matthewbauer pushed a commit that referenced this issue Jun 4, 2019

rydnr pushed a commit to rydnr/nixpkgs that referenced this issue Jun 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.