mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08: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
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
|