kernel-module-management icon indicating copy to clipboard operation
kernel-module-management copied to clipboard

KMM Day 1 services should be uniquely named

Open pcolledg-amd opened this issue 2 years ago • 0 comments

User may deploy multiple modules to nodes. Currently the user would need to manually rename replace-kernel-module.service & pull-kernel-module-image.service for each unique module. This works, but standardising on a renaming method would aid documentation and avoid accidental overwriting. Renaming could either

  • be a prefix/suffix (eg. mod_a-replace-kernel-module.service), or
  • use systemd Service Templates (eg. replace-kernel-module@mod_a.service) with image details specified in a templated file elsewhere (eg. EnvironmentFile=.../%i.env), which would make the .service files generic not templated.

On a related note, in my opinion, /usr/local/bin/replace-kernel-module.sh & /usr/local/bin/pull-kernel-module-image.sh files would be better distributed as generic not templated, configured entirely within the module-specific .service files by runtime env vars (ie. systemd Environment=) and/or script command line args.

pcolledg-amd avatar Dec 14 '23 10:12 pcolledg-amd