Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:tsaupe:branches:Base:System:systemd-openqa-v255
systemd
0002-test-functions-install-resolved-symlinks.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-test-functions-install-resolved-symlinks.patch of Package systemd
From 13acec79ca28905a2f018bbfab22b936102ccc62 Mon Sep 17 00:00:00 2001 From: Thomas Blume <Thomas.Blume@suse.com> Date: Tue, 30 Jan 2024 16:48:10 +0100 Subject: [PATCH 2/6] test-functions: install resolved symlinks (cherry picked from commit 5d775f6d35a70700862485fb9428edad2df01ca7) --- test/test-functions | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test-functions b/test/test-functions index f5a86c7d54..7b7178c7ab 100644 --- a/test/test-functions +++ b/test/test-functions @@ -2037,7 +2037,16 @@ install_execs() { # also, plymouth is pulled in by rescue.service, but even there the exit code # is ignored; as it's not present on some distros, don't fail if it doesn't exist dinfo "Attempting to install $exe (based on unit file reference)" + inst "$exe" || [ "${exe%.local}" != "$exe" ] || [ "${exe%systemd-update-done}" != "$exe" ] || [ "${exe##*/}" == "plymouth" ] + if [[ -L $exe ]]; then + # suppress relative symlinks + exel=$(readlink $exe) + [[ ${exel%%[a-z]*} =~ "../" ]] && continue + # install link target + dinfo "$exe is a symlink, installing link target: $(readlink $exe)" + inst $(readlink $exe) + fi done < <(sed -r -n 's|^Exec[a-zA-Z]*=[@+!-]*([^ ]+).*|\1|gp' "${initdir:?}"/{"$systemunitdir","$userunitdir"}/*.service | sort -u) } -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor