diff options
author | zsien <i@zsien.cn> | 2021-05-10 09:42:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-05-11 14:27:44 +0200 |
commit | 5c2e5957678462d871c5c2ea5261becec5f8f80f (patch) | |
tree | 67f4bd5e1ec235ef02b51eb356ac9e663de60ebb /src/boot/bootctl.c | |
parent | hwdb: keyboard: D330 Touchpad toggle keymap (diff) | |
download | systemd-5c2e5957678462d871c5c2ea5261becec5f8f80f.tar.xz systemd-5c2e5957678462d871c5c2ea5261becec5f8f80f.zip |
bootctl: same entry path check case-insensitive
Some motherboards convert the path to uppercase under certain circumstances
(e.g. after booting into the Boot Menu in the ASUS ROG STRIX B350-F GAMING).
Diffstat (limited to '')
-rw-r--r-- | src/boot/bootctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 34f0c14b44..d89f4e9b59 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -684,7 +684,11 @@ static bool same_entry(uint16_t id, sd_id128_t uuid, const char *path) { return false; if (!sd_id128_equal(uuid, ouuid)) return false; - if (!streq_ptr(path, opath)) + + /* Some motherboards convert the path to uppercase under certain circumstances + * (e.g. after booting into the Boot Menu in the ASUS ROG STRIX B350-F GAMING), + * so use case-insensitive checking */ + if (!strcaseeq_ptr(path, opath)) return false; return true; |