amazon-init: include the general system's software and wrappers in PATH

It is surprising that software which was installed by the user at AMI
generation time isn't available to a script run over user data by
default.

When authoring user data to execute at startup, users will now have
more predictable access to baked-in software instead of an extremely
bare-minimum set currently there.
This commit is contained in:
Graham Christensen 2024-09-17 12:48:15 -04:00
parent 67c8a5983c
commit 76b614be39

View File

@ -75,6 +75,11 @@ in {
after = [ "multi-user.target" ];
requires = [ "network-online.target" ];
path = [
"/run/wrappers"
"/run/current-system/sw"
];
restartIfChanged = false;
unitConfig.X-StopOnRemoval = false;