Skip to content

Commit

Permalink
WIP: Add new ignition-fetch-offline.service
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebon committed Mar 30, 2020
1 parent ea3bdc9 commit 94c47b7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
18 changes: 18 additions & 0 deletions dracut/30ignition/ignition-fetch-offline.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[Unit]
Description=Ignition (fetch-offline)
Documentation=https://github.com/coreos/ignition
ConditionPathExists=/etc/initrd-release
DefaultDependencies=false
Before=ignition-complete.target
After=basic.target

# Run after ignition-setup has run because ignition-setup
# may copy in new/different ignition configs for us to consume.
After=ignition-setup-base.service
After=ignition-setup-user.service

[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/run/ignition.env
ExecStart=/usr/bin/ignition --root=/sysroot --platform=${PLATFORM_ID} --stage=fetch-offline
8 changes: 4 additions & 4 deletions dracut/30ignition/ignition-fetch.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ ConditionPathExists=/etc/initrd-release
DefaultDependencies=false
Before=ignition-complete.target
After=basic.target
ConditionPathExists=/run/ignition/neednet

# Run after ignition-setup has run because ignition-setup
# may copy in new/different ignition configs for us to consume.
After=ignition-setup-base.service
After=ignition-setup-user.service
Requires=ignition-fetch-offline.service
After=ignition-fetch-offline.service

# Network may be used to fetch userdata content.
Requires=network.target
After=network.target

[Service]
Expand Down
1 change: 1 addition & 0 deletions dracut/30ignition/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ install() {

install_ignition_unit ignition-setup-base.service
install_ignition_unit ignition-setup-user.service
install_ignition_unit ignition-fetch-offline.service
install_ignition_unit ignition-fetch.service
install_ignition_unit ignition-disks.service
install_ignition_unit ignition-mount.service
Expand Down

0 comments on commit 94c47b7

Please sign in to comment.