Skip to content

Commit

Permalink
test: Mock ds-identify systemd path (#5119)
Browse files Browse the repository at this point in the history
Fixes GH-5095
  • Loading branch information
holmanb committed Apr 3, 2024
1 parent f6ac6ee commit 4a134bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ds-identify
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ cached() {

detect_virt() {
local virt="${UNAVAILABLE}" r="" out=""
if [ -d /run/systemd ]; then
if [ -d "${PATH_ROOT}/run/systemd" ]; then
if [ -n "$DI_SYSTEMD_VIRTUALIZATION" ]; then
virt=${DI_SYSTEMD_VIRTUALIZATION#*:}
debug 2 "detected $virt via env variable SYSTEMD_VIRTUALIZATION"
Expand Down

0 comments on commit 4a134bf

Please sign in to comment.