nixos/sd-image: explicit reference to the gawk package #106751
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
The
awk
command is not installed in the standard env. So this command fails if theawk
command is not installed by some external module.This is the error you'll get if you try to boot an sd-image built with the
sd-image
module (without the base profile):Things done
Built NixOS with this change and verified that the post-boot script successfully ran. I verified this by checking that the
/nix-path-registration
file has been deleted by the post-boot script to mark a successful completion (it wasn't deleted before this change).sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)cc: @Mic92 @samueldr @SuperSandro2000