]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Filter and sort all mounts in sandbox_cmd() 2511/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 15 Mar 2024 10:57:14 +0000 (11:57 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 15 Mar 2024 11:26:31 +0000 (12:26 +0100)
commit793db27e84be37e1c9420ee1fcad022ea561ffb7
treec7aa165a831f0f5c4636c262390d2abcb5c64caa
parentab0d93efc8286d3fcb665d98ac867feaa3b9e591
Filter and sort all mounts in sandbox_cmd()

We don't want users of sandbox_cmd() to have to care about mount
ordering. Currently, if mounts with a more general destination are
ordered after mounts with a more specific destination, the earlier
mount is hidden by the later mount. By sorting by destination, we
avoid this issue.
mkosi/sandbox.py
mkosi/tree.py