Merge pull request #106751 from urbas/sd-image-first-boot-awk-missing
nixos/sd-image: explicit reference to the gawk package
commit95042a58fba9a1471da344bdbb7ce377d2b4205a
authorJörg Thalheim <Mic92@users.noreply.github.com>
dateSat 12 Dec 2020, 16:37 (6 years ago)
parent5f0d38faa38540
nixos/modules/installer/cd-dvd/sd-image.nix+1−1
@@ -223,7 +223,7 @@ in
223223 # Figure out device names for the boot device and root filesystem.
224224 rootPart=$(${pkgs.util-linux}/bin/findmnt -n -o SOURCE /)
225225 bootDevice=$(lsblk -npo PKNAME $rootPart)
226− partNum=$(lsblk -npo MAJ:MIN $rootPart | awk -F: '{print $2}')
226+ partNum=$(lsblk -npo MAJ:MIN $rootPart | ${pkgs.gawk}/bin/awk -F: '{print $2}')
227227
228228 # Resize the root partition and the filesystem to fit the disk
229229 echo ",+," | sfdisk -N$partNum --no-reread $bootDevice