mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-12 08:58:20 +03:00
The read-only bit is flipped after setting up all the mounts, so that bind mounts can be added. Remove the early config, and add a unit test. Fixes https://github.com/systemd/systemd/issues/30372 (cherry picked from commit ae7482b994e6a9bc8e033de9accd24b1e1ffe2ed)
11 lines
262 B
Desktop File
11 lines
262 B
Desktop File
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
[Unit]
|
|
Description=Test for PrivateDevices=yes with a bind mounted device
|
|
|
|
[Service]
|
|
ExecStart=/bin/sh -c 'test -c /dev/kmsg'
|
|
ExecStart=/bin/sh -c 'test ! -w /dev/'
|
|
Type=oneshot
|
|
PrivateDevices=yes
|
|
BindPaths=/dev/kmsg
|