forked from containers/podman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow removing implicit quadlet systemd dependencies
Quadlet inserts network-online.target Wants/After dependencies to ensure pulling works. Those systemd statements cannot be subsequently reset. In the cases where those dependencies are not wanted, we add a new configuration item called `DefaultDependencies=` in a new section called [Quadlet]. This section is shared between different unit types. fixes containers#24193 Signed-off-by: Farya L. Maerten <[email protected]>
- Loading branch information
Showing
7 changed files
with
121 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## assert-key-is-empty "Unit" "Wants" | ||
## assert-key-is-empty "Unit" "After" | ||
## assert-key-is-empty "Unit" "Before" | ||
|
||
[Quadlet] | ||
DefaultDependencies=no | ||
|
||
[Build] | ||
ImageTag=localhost/imagename | ||
File=Containerfile | ||
SetWorkingDirectory=dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## assert-key-is-empty "Unit" "Wants" | ||
## assert-key-is-empty "Unit" "After" | ||
## assert-key-is-empty "Unit" "Before" | ||
|
||
[Quadlet] | ||
DefaultDependencies=no | ||
|
||
[Container] | ||
Image=localhost/imagename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## assert-key-is-empty "Unit" "Wants" | ||
## assert-key-is-empty "Unit" "After" | ||
## assert-key-is-empty "Unit" "Before" | ||
|
||
[Quadlet] | ||
DefaultDependencies=no | ||
|
||
[Image] | ||
Image=localhost/imagename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters