mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test: explicitly create the /etc/init.d directory
On RHEL/CentOS/Fedora this directory is provided by the chkconfig or
initscripts package, which might not be installed:
testsuite-26.sh[1225]: + [[ -x /usr/lib/systemd/system-generators/systemd-sysv-generator ]]
testsuite-26.sh[1225]: + cat
testsuite-26.sh[2330]: /usr/lib/systemd/tests/testdata/units/testsuite-26.sh: line 299: /etc/init.d/issue-24990: No such file or directory
Follow-up to 5f882cc3ab.
This commit is contained in:
committed by
Yu Watanabe
parent
b7a41491ed
commit
7fcf0fab07
@@ -317,7 +317,7 @@ systemctl unset-environment IMPORT_THIS IMPORT_THIS_TOO
|
||||
|
||||
# test for sysv-generator (issue #24990)
|
||||
if [[ -x /usr/lib/systemd/system-generators/systemd-sysv-generator ]]; then
|
||||
|
||||
mkdir -p /etc/init.d
|
||||
# invalid dependency
|
||||
cat >/etc/init.d/issue-24990 <<\EOF
|
||||
#!/bin/bash
|
||||
|
||||
Reference in New Issue
Block a user