test: check if we correctly propagate /run mounts during switch root
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 19 Jul 2023 12:26:26 +0000 (14:26 +0200)
committerLuca Boccassi <bluca@debian.org>
Mon, 24 Jul 2023 09:39:14 +0000 (10:39 +0100)
commit8256994c63dbcf89b5e194cd120214ec085049bb
tree49ffd230c9ccf4115cc6e3c5756a8643789e6018
parentb12d41a8bb7c99f7d7a1c7821a886d98b42d9ce0
test: check if we correctly propagate /run mounts during switch root

Since 7c764d4 we bind mount certain directories during switch root
instead of moving the mount directly, and for /run we do this without
MS_REC. This, unfortunately, leaves all mounts under /run behind
in the old root, which breaks certain use cases.

See: https://github.com/systemd/systemd/issues/28452
test/TEST-01-BASIC/test.sh
test/units/testsuite-01.sh