diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2020-12-12 16:37:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-12 16:37:54 +0000 |
commit | 95042a58fba9a1471da344bdbb7ce377d2b4205a (patch) | |
tree | 762034122b8707da4c0138d3401671c0ebca4631 /nixos | |
parent | 5f0d38f05b44d7ae44af5ed6e7702724c40e341e (diff) | |
parent | aa38540423e82e819b048f932eefc78ac6e6a0c2 (diff) |
Merge pull request #106751 from urbas/sd-image-first-boot-awk-missing
nixos/sd-image: explicit reference to the gawk package
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/installer/cd-dvd/sd-image.nix | 2 |
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 |