1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/nixos/lib
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
..
make-options-doc nixos/make-options-doc: deprecate docbook outputs 2023-06-13 16:56:32 +02:00
test-driver integration test driver: Auto-generate integration test driver's machine 2023-07-10 08:51:52 +02:00
testing integration test driver: Auto-generate integration test driver's machine 2023-07-10 08:51:52 +02:00
default.nix
eval-cacheable-options.nix nixos,nixpkgs: Add module classes 2023-05-06 18:29:04 +02:00
eval-config-minimal.nix lib/modules: Move class out of specialArgs 2023-05-06 18:32:58 +02:00
eval-config.nix treewide: use lib.optional instead of 'then []' 2023-07-12 09:36:28 +01:00
from-env.nix
make-channel.nix
make-disk-image.nix nixos/lib/make-disk-image: fix installBootLoader for disabled grub 2023-07-19 20:04:57 +02:00
make-ext4-fs.nix
make-iso9660-image.nix make-iso9660-image: use __structuredAttrs 2023-05-11 14:25:44 +02:00
make-iso9660-image.sh make-iso9660-image: use __structuredAttrs 2023-05-11 14:25:44 +02:00
make-multi-disk-zfs-image.nix nixos/lib/make-(multi|single)-disk-zfs-image: use qemu_kvm (host arch) instead of qemu (all arches) 2023-04-28 23:50:44 +02:00
make-single-disk-zfs-image.nix nixos/lib/make-(multi|single)-disk-zfs-image: use qemu_kvm (host arch) instead of qemu (all arches) 2023-04-28 23:50:44 +02:00
make-squashfs.nix make-squashfs: use __structuredAttrs 2023-05-11 14:25:31 +02:00
make-system-tarball.nix
make-system-tarball.sh
qemu-common.nix nixos/qemu: set qemuSerialDevice for loongarch64 2023-06-26 08:58:20 +00:00
systemd-lib.nix nixos/lib: save triggers of systemd into nix store 2023-05-11 17:38:54 +08:00
systemd-network-units.nix nixos/networkd: fix mismerge of #240969 and #241362 2023-07-09 07:34:42 +03:00
systemd-types.nix
systemd-unit-options.nix systemd.units.<name>.wantedBy: fix documentation rendering 2023-05-18 18:04:31 +02:00
test-script-prepend.py
testing-python.nix
utils.nix nixos/networkd: refactor 2023-07-01 17:17:51 -07:00