core: try again bind mounting if the destination was already created
authorLuca Boccassi <bluca@debian.org>
Sat, 29 Jun 2024 17:31:23 +0000 (18:31 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 29 Jun 2024 22:44:03 +0000 (00:44 +0200)
commitc3f0f6f8bd812fee4b2ab658a5cc9ac9167d387d
treed029b8b68eef4895a82f6c046c4b5465f2760dbf
parentc5822010aebbff30ddf1dc1d8760c0bdadca09eb
core: try again bind mounting if the destination was already created

If the destination mount point is on a shared filesystem and is
missing on the first attempt, we try to create it, but then
fail with -EEXIST if something else created it in the meanwhile.
Enter the retry logic on EEXIST, as we can just use the mount
point if it was already created.

Fixes https://github.com/systemd/systemd/issues/29690
src/core/namespace.c