Skip to content

nixos-rebuild will not switch to new configuration (possibly gummiboot-related) #14902

@NeQuissimus

Description

@NeQuissimus

Issue description

I am trying to nixos-rebuild switch (it does not matter whether I do it with or without -I nixpkgs=~/dev/nixpkgs; where that points at the latest master; I have also run with --upgrade to pull the latest channel updates).
I keep seeing the following, complaining about something with gummiboot:

Traceback (most recent call last):
  File "/nix/store/jppdlvff9ldhxm6wcq2cjsx1094hsg9m-gummiboot-builder.py", line 112, in <module>
    gens = get_generations("system")
  File "/nix/store/jppdlvff9ldhxm6wcq2cjsx1094hsg9m-gummiboot-builder.py", line 67, in get_generations
    "--option", "build-users-group", ""
  File "/nix/store/8gv8s398yqbwfk01x29x1b5hhfq29s8k-python-2.7.11/lib/python2.7/subprocess.py", line 566, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/nix/store/8gv8s398yqbwfk01x29x1b5hhfq29s8k-python-2.7.11/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/nix/store/8gv8s398yqbwfk01x29x1b5hhfq29s8k-python-2.7.11/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
warning: error(s) occurred while switching to the new configuration

The gummiboot-builder.py seems to issue nix-env --list-generations --option build-users-group "", which when run by hand, results in the following for me:

  16   2016-04-15 09:27:26   (current)

Steps to reproduce

nixos-rebuild switch

Technical details

  • System: 16.09.git.0729f60 (Flounder)
  • Nix version: nix-env (Nix) 1.12pre4523_3b81b26
  • Nixpkgs version: "16.09pre81686.f1675d9"

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions