From aa38540423e82e819b048f932eefc78ac6e6a0c2 Mon Sep 17 00:00:00 2001 From: Matej Urbas Date: Sat, 12 Dec 2020 15:23:04 +0000 Subject: 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. --- nixos/modules/installer/cd-dvd/sd-image.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/installer/cd-dvd') diff --git a/nixos/modules/installer/cd-dvd/sd-image.nix b/nixos/modules/installer/cd-dvd/sd-image.nix index c8c5a46dfb8..b811ae07eb0 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 -- cgit 1.4.1