]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootctl: do not fail when the same file is updated multiple times
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 Jun 2024 07:11:23 +0000 (16:11 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 21 Jul 2025 15:07:08 +0000 (16:07 +0100)
commit7107cfbf4f0bcb377f533f0dbc5b5a5ea41b41c0
tree8766d2a680526fa3c66674bab4ca5a908631d1b9
parenta00078e8c8af30d1d2e23817646ed05ba1f9cfdd
bootctl: do not fail when the same file is updated multiple times

In the second or later trial, copy_file_with_version_check() -> version_check()
fails with -ESRCH. Let's ignore the failure.

This also adds missing assertions in update_efi_boot_binaries(), and
drop redundant version check in update_efi_boot_binaries(), as version
will be anyway checked later.

Fixes a regression caused by 929f41c6528fb630753d4e2f588a8eb6c2f6a609.
Fixes #33392.
src/bootctl/bootctl-install.c