-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1747 from sinnykumari/firstboot
Bug 1838984: [release-4.3] templates: Don't enable machine-config-daemon-host.service by default
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
templates/common/_base/units/machine-config-daemon-firstboot-v42.service
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,21 @@ | ||
name: "machine-config-daemon-firstboot-v42.service" | ||
enabled: true | ||
contents: | | ||
[Unit] | ||
Description=Machine Config Daemon Firstboot (4.2 bootimage) | ||
# Make sure it runs only on OSTree booted system | ||
ConditionPathExists=/run/ostree-booted | ||
BindsTo=ignition-firstboot-complete.service | ||
ConditionPathExists=/etc/ignition-machine-config-encapsulated.json | ||
# Note the opposite of this in machine-config-daemon-firstboot | ||
ConditionPathExists=!/sysroot/.coreos-aleph-version.json | ||
After=ignition-firstboot-complete.service | ||
Before=kubelet.service | ||
|
||
[Service] | ||
# Need oneshot to delay kubelet | ||
Type=oneshot | ||
ExecStart=/usr/libexec/machine-config-daemon pivot | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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
2 changes: 1 addition & 1 deletion
2
templates/common/_base/units/machine-config-daemon-host.service
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