nixpkgs/nixos
Pogobanane d7740c24cb nixos/lib/make-disk-image: fix installBootLoader for disabled grub
This commit is a fixup for a regression introduced by
0bdba6c99b.

Before the regression, it was possible to build images without grub or a
kernel (e.g. to boot other kernels with qemu -kernel.
After the regression, such images fail to build. Since
config.boog.loader.grub.enable is false in that scenario, grub.device is
emptystring. While this happens not to be an issue of `ln`, `dirname`
fails on emptystring.

With this change, we guard both commands to only be run when grub is
actually enabled. Images with and without grub succesfully build with
this change.
2023-07-19 20:04:57 +02:00
..
doc/manual Merge pull request #242135 from tfc/test-driver-doc-autogen 2023-07-18 21:17:44 +02:00
lib nixos/lib/make-disk-image: fix installBootLoader for disabled grub 2023-07-19 20:04:57 +02:00
maintainers nixos/amazon-image: embiggen 2023-06-07 08:42:47 +03:00
modules Merge pull request #228288 from Cynerd/bigclown 2023-07-19 15:51:25 +02:00
tests Merge pull request #244174 from rnhmjoj/pr-fix-extra-layouts 2023-07-19 08:13:13 +02:00
COPYING
default.nix
README
release-combined.nix nixos/release-*: finish dropping the conntrack tests 2023-03-04 09:28:09 +01:00
release-small.nix Merge pull request #209870 from amjoseph-nixpkgs/pr/stdenv/external-gcc-bootstrap 2023-04-03 08:19:03 -07:00
release.nix nixos/release: add deepin closure 2023-05-08 18:25:41 +08:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.