]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootctl: return recognizable Varlink error when we cannot determine the boot entry...
authorLennart Poettering <lennart@amutable.com>
Fri, 23 Jan 2026 20:04:55 +0000 (21:04 +0100)
committerLennart Poettering <lennart@amutable.com>
Fri, 6 Feb 2026 22:16:50 +0000 (23:16 +0100)
commit9b29d38c33dcdb56a51d0baf577a8d6d4afde4e4
tree6638d680e78e138bb049231a13a68db191fd43b8
parent91b3620b07f29342261a3cbdaaaa3f83f21895e1
bootctl: return recognizable Varlink error when we cannot determine the boot entry token

When running "bootctl install" on an empty --root= dir, we don't know
which token to use, and the operation will fail. Make sure to return an
explicit error about this.

This introduces a recognizable low-level error for this (EUNATCH), and
then turns this into a recognizable Varlink error.

(I made sure that the old low-level error EINVAL wasn't load-bearing,
and it is safe to change this.)
src/bootctl/bootctl-install.c
src/shared/boot-entry.c
src/shared/varlink-io.systemd.BootControl.c