mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
test: use a dropin to override the end.service unit
instead of removing it.
This commit is contained in:
parent
3fe2885cc5
commit
1b87ca4fe9
@ -24,7 +24,12 @@ EOF
|
||||
test_append_files() {
|
||||
local workspace="${1:?}"
|
||||
# prevent shutdown in test suite, the expect script does that manually.
|
||||
rm "${workspace:?}/usr/lib/systemd/tests/testdata/units/end.service"
|
||||
mkdir -p "${workspace:?}/etc/systemd/system/end.service.d"
|
||||
cat >"$workspace/etc/systemd/system/end.service.d/99-override.conf" <<EOF
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/bin/true
|
||||
EOF
|
||||
inst /usr/bin/screen
|
||||
echo "PS1='screen\$WINDOW # '" >>"$workspace/root/.bashrc"
|
||||
echo 'startup_message off' >"$workspace/etc/screenrc"
|
||||
|
Loading…
Reference in New Issue
Block a user