logind: Rename kexec reboot flag
Also change error message to be more meanigful. No change in
functionality.
Fixes: 0d96caa5c0
This commit is contained in:
committed by
Lennart Poettering
parent
907952bbc9
commit
1d8a16f1f4
@@ -80,7 +80,7 @@ int logind_reboot(enum action a) {
|
||||
return 0;
|
||||
|
||||
SET_FLAG(flags, SD_LOGIND_ROOT_CHECK_INHIBITORS, arg_check_inhibitors > 0);
|
||||
SET_FLAG(flags, SD_LOGIND_KEXEC_REBOOT, a == ACTION_KEXEC);
|
||||
SET_FLAG(flags, SD_LOGIND_REBOOT_VIA_KEXEC, a == ACTION_KEXEC);
|
||||
|
||||
method_with_flags = strjoina(actions[a].method, "WithFlags");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user