]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: change mount options settings so that last defined wins
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 25 Oct 2025 17:40:44 +0000 (18:40 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 6 Jan 2026 16:59:10 +0000 (17:59 +0100)
commit9de41f677c5928ed9779bc03c0b09b36c11570bc
tree8c17af6a12098f65b27e22cc1b802be5897a4cf4
parent9573ad4e76d28b459123cfb4b5cffab474738ab3
core: change mount options settings so that last defined wins

Currently mount options are handled in such a way that the first
definition for a given partition wins, and documented as such.
Change them so that they behave like other options, and the
last specified wins.
Applies to RootImageOptions=, MountImages= and ExtensionImages=.
Switch from a linked list to an array indexed by the partition
specifier to store them.
14 files changed:
man/systemd.exec.xml
src/core/dbus-execute.c
src/core/dbus-util.c
src/core/dbus-util.h
src/core/execute-serialize.c
src/core/execute.c
src/core/execute.h
src/core/load-fragment.c
src/core/namespace.c
src/core/namespace.h
src/core/varlink-execute.c
src/shared/dissect-image.c
src/shared/dissect-image.h
test/units/TEST-50-DISSECT.dissect.sh