nixos/systemd-boot: fix error output#155054
Conversation
|
For what it's worth, was able to get my system back up and running after using the patch. |
|
For this code path to be hit though, you essentially have to nuke your |
|
or you could |
|
Successfully created backport PR #156331 for |
|
This doesn't work as expected, That said, the best option is probably to make |
Yea, currently it looks like: which hints at gen[0] is always None, and gen[1] is the generation number. |
|
d6354030fa3542a6d604c3206b731f666be36485 handles this case and prints Quoting the
|
Sorry, I meant, its always None in my current case. So it's not really meaningful. |
|
Oh yes got it, indeed a plain What should we do now, revert this commit and merge #156798 (after review of course), or just merge #156798 on top of it after resolving the single-line conflict? Or maybe extract d6354030fa3542a6d604c3206b731f666be36485 from #156798 into another PR to more easily backport this single commit to 21.11 (no clue how and when to backport changes)? |
|
It sounds like y'all already know, but this change masks the underlying OSError (in my case, it was ENOSPACE). |
Motivation for this change
May or may not have borked my build server after /nix/var/nix/db/db.sqlite got corrupted.... and I took a big hammer to it. But stumbled upon this issue.
This should ignore the errors, and just print them. But because
profilefell out-of-scope, it becomes a hard errorThings done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes