]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootspec: honour profile number when sorting properly 41367/head
authorLennart Poettering <lennart@amutable.com>
Thu, 26 Mar 2026 22:44:59 +0000 (23:44 +0100)
committerLennart Poettering <lennart@amutable.com>
Fri, 27 Mar 2026 09:44:14 +0000 (10:44 +0100)
commit6a4a4f0302e78fda9ff2cfb7ac6a5644aabc4fc2
treedf9b582f416998170394e6fe660c4a4c83f3575d
parent208cc69c5005a7c9edec96ca5109c226126106a6
bootspec: honour profile number when sorting properly

This corrects sorting of menu entries regarding profile numbers:

1. If the profile number is unset, let's treat this identical to profile
   0, when ordering stuff, because an item with no profile is
   conceptually the same as an item with only a profile 0.

2. Let's take the profile number into account also if sort keys are
   used. This was makes profiles work sensibly in type 1 entries, via
   the recently added "profile" stanza.

Follow-up for: 5fb90fa3194d998a971b21e4a643670ae5903f85
src/boot/boot.c
src/shared/bootspec.c