To integrate bootupd with a specific package manager (e.g., dpkg, pacman, apk, or rpm), you must provide a query-file-owner script. This script is used by packagesystem.rs to detect package ownership.
Requirements for the script:
- The script must accept one or more file paths as arguments:
query-file-owner [FILE] [FILE...]. - The output must be a list of package information, with one package per line in the format:
NAME VERSION.
Example output format:
grub2-efi-x64 1:2.06-95.fc38
shim-x64 15.6-2
Testing existing implementations:
You can install and test existing implementations for supported package systems using make:
make install-all PACKAGESYSTEM=rpm
Supported PACKAGESYSTEM values: dpkg, rpm, pacman, apk.