Commit Graph

11 Commits

Author SHA1 Message Date
R. Ryantm
2b14525500 waagent: 2.9.1.1 -> 2.10.0.8 2024-03-28 17:30:39 +00:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
R. Ryantm
a41d422686 waagent: 2.8.0.11 -> 2.9.1.1 2024-01-21 23:12:17 +00:00
Florian Klink
f12915c4e0 waagent: fix re-execution
waagent re-executes itself in UpdateHandler.run_latest, even if
autoupdate is disabled.
It manually spawns a python interprever with argv0, so make sure we set
this to the right place.
PATH contains our PYTHON, and PYTHONPATH stays set, so this should
somewhat still work.
2023-12-18 19:08:59 +02:00
Florian Klink
276939e0a1 nixos/waagent: move runtime dependencies to systemd service
The udev rules shell out to chmod, cut and readlink, which are available
for udev rules (see https://github.com/NixOS/nixpkgs/pull/274236).
2023-12-18 13:18:11 +02:00
Florian Klink
f9991e9de0 waagent: fixes
- use propagatedBuildInputs, we need `distro` at runtime.
 - move addition of runtimeDeps into makeWrapperArgs
 - move binary moving into preFixup, so buildPythonApplication can do
   its thing.
 - populate $out/etc as well, so udev rules can be found.

The udev file needs to be patched to fix the /bin/chmod reference.
2023-12-18 13:18:10 +02:00
Florian Klink
76254a64b9 waagent: fix description in meta
Make description a single line, and put the multi-line version in a
multiline string.
2023-12-18 13:18:10 +02:00
Florian Klink
beff92b86f waagent: use buildPythonApplication 2023-12-18 13:18:10 +02:00
Florian Klink
29d99b1a6e waagent: nixpkgs-fmt
The comments for the function args are redundant, we already have them in runtimeDeps.
2023-12-18 13:18:10 +02:00
Yang, Bo
bff548fef1 waagent: enable provisioning 2023-11-14 19:47:27 +01:00
Åsmund Østvold
ca0175017d
waagent: update to 2.8.0.11 (#206974)
The agent has not been updated for a very long time.  In addition to
updating to the newest tagged version the change creates a package for
it.

The existing version has issues with the new python2.7 package not
containing crypt.so file. And the commit
6910a4eea0 I believe introduced
regression that caused the shebang to not be updated.
2023-01-10 20:58:20 +01:00