Bug 1737283
Summary: | backport ExecCondition | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Aniket Bhavsar <abhavsar> |
Component: | systemd | Assignee: | David Tardon <dtardon> |
Status: | CLOSED ERRATA | QA Contact: | Frantisek Sumsal <fsumsal> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.4 | CC: | dtardon, fkrska, msekleta, sbalasub, systemd-maint-list |
Target Milestone: | rc | Keywords: | Patch |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-04 02:02:06 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Aniket Bhavsar
2019-08-05 01:39:14 UTC
To be honest, I don't like this idea since it can easily get racy. If I am not mistaken, the dnsdomainname depends on the network, and it might not be available until very late into the boot. Is there any reason the customer cannot use ExecCondition? E.g., something like ExecCondition=/usr/bin/sh -c 'test `dnsdomainname` = dhcp.example.com' Uh, I didn't notice ExecCondition= has only been added in v. 243. I'll backport it. Let's generalize this bug into a backport request for ExecCondition. With ExecCondition available, the customer can easily run a check on DNS domain name as suggested in comment 4. fix merged to github master branch -> https://github.com/systemd-rhel/rhel-8/pull/48 fix merged to github master branch -> https://github.com/systemd-rhel/rhel-8/pull/108 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Low: systemd security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:4553 |