summaryrefslogtreecommitdiffstats
path: root/nixos/modules
diff options
context:
space:
mode:
authorMatej Urbas <matej.urbas@gmail.com>2020-12-12 15:23:04 +0000
committerMatej Urbas <matej.urbas@gmail.com>2020-12-12 15:43:09 +0000
commitaa38540423e82e819b048f932eefc78ac6e6a0c2 (patch)
tree56bf642c92722763545899ba3bdd65d69587ac9e /nixos/modules
parente9158eca70ae59e73fae23be5d13d3fa0cfc78b4 (diff)
nixos/sd-image: explicit reference to the gawk package
The `awk` command is not installed in the standard env. So this command fails if the `awk` command is not installed by some external module.
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/installer/cd-dvd/sd-image.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/installer/cd-dvd/sd-image.nix b/nixos/modules/installer/cd-dvd/sd-image.nix
index c8c5a46dfb87..b811ae07eb03 100644
--- a/nixos/modules/installer/cd-dvd/sd-image.nix
+++ b/nixos/modules/installer/cd-dvd/sd-image.nix
@@ -223,7 +223,7 @@ in
# Figure out device names for the boot device and root filesystem.
rootPart=$(${pkgs.util-linux}/bin/findmnt -n -o SOURCE /)
bootDevice=$(lsblk -npo PKNAME $rootPart)
- partNum=$(lsblk -npo MAJ:MIN $rootPart | awk -F: '{print $2}')
+ partNum=$(lsblk -npo MAJ:MIN $rootPart | ${pkgs.gawk}/bin/awk -F: '{print $2}')
# Resize the root partition and the filesystem to fit the disk
echo ",+," | sfdisk -N$partNum --no-reread $bootDevice