]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: suppress XBOOTLDR if same device as ESP when enumerating entries
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Feb 2022 21:23:37 +0000 (22:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Feb 2022 15:24:04 +0000 (16:24 +0100)
commitf63b5ad93592ff64b5e8a83b63f2a3daade28114
treef8e2b4b98686412a3f667a727ffac4d2c830e7b7
parent56350400918c6979c60d46b7825e9671ee31f09c
boot: suppress XBOOTLDR if same device as ESP when enumerating entries

On my local system I linked up the ESP and XBOOTLDR partitions, and
ended up with duplicate entries being listed. Try hard to detect that
and only enumerate entries in the ESP if it turns out that both dirs
have the same dev_t.

This should detect both bind mounted and symlinked cases and should make
our list output less confusing.
src/basic/stat-util.h
src/boot/bless-boot.c
src/boot/bootctl.c
src/shared/bootspec.c
src/shared/bootspec.h