mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
bootctl: Make sure bootctl install returns 0 on success
This backports the same fix from6e9165397f
in systemd upstream that we can't backport directly because that commit introduces a new feature. (cherry picked from commiteb76587f33
)
This commit is contained in:
parent
6100e1dded
commit
6f8adbad80
@ -1852,13 +1852,16 @@ static int verb_install(int argc, char *argv[], void *userdata) {
|
||||
|
||||
(void) sync_everything();
|
||||
|
||||
if (arg_touch_variables)
|
||||
r = install_variables(arg_esp_path,
|
||||
part, pstart, psize, uuid,
|
||||
"/EFI/systemd/systemd-boot" EFI_MACHINE_TYPE_NAME ".efi",
|
||||
install);
|
||||
if (!arg_touch_variables)
|
||||
return 0;
|
||||
|
||||
return r;
|
||||
r = install_variables(arg_esp_path, part, pstart, psize, uuid,
|
||||
"/EFI/systemd/systemd-boot" EFI_MACHINE_TYPE_NAME ".efi",
|
||||
install);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int verb_remove(int argc, char *argv[], void *userdata) {
|
||||
|
Loading…
Reference in New Issue
Block a user