mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
test/test-functions: adjust to Exec*= paths not being absolute
This commit is contained in:
parent
e180bdb5eb
commit
fe4bd4e501
@ -504,7 +504,7 @@ install_execs() {
|
||||
export PKG_CONFIG_PATH=$BUILD_DIR/src/core/
|
||||
systemdsystemunitdir=$(pkg-config --variable=systemdsystemunitdir systemd)
|
||||
systemduserunitdir=$(pkg-config --variable=systemduserunitdir systemd)
|
||||
sed -n 's|^Exec[a-zA-Z]*=[^/]*\(/[^ ]*\).*|\1|gp' $initdir/{$systemdsystemunitdir,$systemduserunitdir}/*.service \
|
||||
sed -r -n 's|^Exec[a-zA-Z]*=[@+!-]*([^ ]+).*|\1|gp' $initdir/{$systemdsystemunitdir,$systemduserunitdir}/*.service \
|
||||
| sort -u | while read i; do
|
||||
# some {rc,halt}.local scripts and programs are okay to not exist, the rest should
|
||||
inst $i || [ "${i%.local}" != "$i" ] || [ "${i%systemd-update-done}" != "$i" ]
|
||||
|
Loading…
Reference in New Issue
Block a user