mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-08 06:31:50 +00:00
A user was running into issues installing the kernel-container bundle on Clear Linux. Namely, all missing files marked as boot were not installed. The root issue is that the bundle-add action does not set the "fix" global variable before calling ignore(), so ignore() mistakenly returns true when considering boot files that are missing, but not marked deleted. Because 'bundle-add' should be installing new boot files, and 'verify --fix' should be repairing boot files if they have mismatching hashes, remove the global "fix" variable entirely, since in all current call sites, the "fix" behavior is expected. Also, add another call to ignore() in remove_orphaned_files() to ensure that any file that should be ignored (including deleted boot files) are not removed during a 'verify --fix'. Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>