Skip to content

Commit

Permalink
dracut: drop CoreOS specific dracut modules
Browse files Browse the repository at this point in the history
Remove both 30ignition/coreos.* and 99* modules which are specific to
Fedora CoreOS.

Signed-off-by: Ben Howard <ben.howard@redhat.com>
  • Loading branch information
Ben Howard committed Jul 23, 2020
1 parent 6242c9b commit 53d9e62
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 469 deletions.
34 changes: 0 additions & 34 deletions dracut/30ignition/coreos-gpt-setup.service

This file was deleted.

25 changes: 0 additions & 25 deletions dracut/30ignition/coreos-gpt-setup.sh

This file was deleted.

38 changes: 0 additions & 38 deletions dracut/30ignition/coreos-teardown-initramfs.service

This file was deleted.

187 changes: 0 additions & 187 deletions dracut/30ignition/coreos-teardown-initramfs.sh

This file was deleted.

4 changes: 4 additions & 0 deletions dracut/30ignition/ignition-fetch-offline.service
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Before=ignition-fetch.service
OnFailure=emergency.target
OnFailureJobMode=isolate

# See hack in ignition-check-neednet, as well as coreos-copy-firstboot-network.service.
After=dracut-cmdline.service
Before=dracut-initqueue.service

[Service]
Type=oneshot
RemainAfterExit=yes
Expand Down
2 changes: 0 additions & 2 deletions dracut/30ignition/ignition-generator
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ if $(cmdline_bool 'ignition.firstboot' 0); then
[Unit]
Requires=dev-disk-by\x2dlabel-boot.device
After=dev-disk-by\x2dlabel-boot.device
Requires=coreos-gpt-setup.service
After=coreos-gpt-setup.service
EOF
fi
else
Expand Down
2 changes: 1 addition & 1 deletion dracut/30ignition/ignition-setup-user.service
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Before=ignition-fetch-offline.service
Before=multipathd.service

# On diskful boots, ignition-generator adds Requires/After on
# dev-disk-by\x2dlabel-boot.device & coreos-gpt-setup.service
# dev-disk-by\x2dlabel-boot.device

[Service]
Type=oneshot
Expand Down
17 changes: 7 additions & 10 deletions dracut/30ignition/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ depends() {
echo qemu systemd url-lib network
}

# Ignition 2.5.0 conflicts with the Ignition-Drauct modules.
check() {
if dracut_module_included "ignition"; then
return 1;
fi
}

install_ignition_unit() {
local unit="$1"; shift
local target="${1:-ignition-complete.target}"; shift
Expand Down Expand Up @@ -54,9 +61,6 @@ install() {
# Required on system using SELinux
inst_multiple -o setfiles

inst_script "$moddir/coreos-gpt-setup.sh" \
"/usr/sbin/coreos-gpt-setup"

inst_script "$moddir/ignition-setup-base.sh" \
"/usr/sbin/ignition-setup-base"
inst_script "$moddir/ignition-setup-user.sh" \
Expand All @@ -83,12 +87,6 @@ install() {
"$systemdsystemunitdir/ignition-$x.target"
done

# For consistency tear down the network and persist multipath between the initramfs and
# real root. See https://github.com/coreos/fedora-coreos-tracker/issues/394#issuecomment-599721763
inst_script "$moddir/coreos-teardown-initramfs.sh" \
"/usr/sbin/coreos-teardown-initramfs"
install_ignition_unit coreos-teardown-initramfs.service

install_ignition_unit ignition-setup-base.service
install_ignition_unit ignition-setup-user.service
install_ignition_unit ignition-fetch.service
Expand All @@ -99,7 +97,6 @@ install() {

# units only started when we have a boot disk
# path generated by systemd-escape --path /dev/disk/by-label/root
install_ignition_unit coreos-gpt-setup.service ignition-diskful.target
install_ignition_unit ignition-remount-sysroot.service ignition-diskful.target

# needed for openstack config drive support
Expand Down
15 changes: 0 additions & 15 deletions dracut/99emergency-timeout/ignition-virtio-dump-journal.service

This file was deleted.

11 changes: 0 additions & 11 deletions dracut/99emergency-timeout/ignition-virtio-dump-journal.sh

This file was deleted.

0 comments on commit 53d9e62

Please sign in to comment.