Skip to content

Install fails due to boot.loader.grub.devices not being set #23

Open
@Altirix

Description

error:
       … while calling the 'head' builtin
         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1:35741:
       … while evaluating the attribute 'value'
         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:1:33591:
       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error:
       Failed assertions:
       - You must set the option ‘boot.loader.grub.devices’ or 'boot.loader.grub.mirroredBoots' to make the system bootable.
Traceback (most recent call last):
  File "/nix/store/fbw4jfvd4n37hk0hi3kw67arrr2zhmwc-nixos-up.py", line 305, in <module>
    run(["nixos-install", "--no-root-passwd"])
  File "/nix/store/fbw4jfvd4n37hk0hi3kw67arrr2zhmwc-nixos-up.py", line 123, in run
    subprocess.run(args, check=True)
  File "/nix/store/kjgslpdqchx1sm7a5h9xibi5rrqcqfnl-python3-3.12.8/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['nixos-install', '--no-root-passwd']' returned non-zero exit status 1.

had to modify /mnt/etc/nixos/configuration.nix and uncomment the device. i guess this has changed since this was released.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions