Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Ignition-Dracut into Ignition #1039

Merged
merged 536 commits into from Jul 24, 2020
Merged

Move Ignition-Dracut into Ignition #1039

merged 536 commits into from Jul 24, 2020

Conversation

darkmuggle
Copy link
Contributor

dracut: remove CoreOS specific bits from Dracut

CoreOS specific modules have been will be moved over https://github.com/coreos/fedora-coreos-config.

The approach came from coreos/fedora-coreos-tracker#511

bgilbert and others added 30 commits November 18, 2017 10:36
Copy Ignition base/user configs from OEM to Ignition system dir
The "After=disk-uuid.service" in ignition-setup.service doesn't actually
work because disk-uuid.service is templated. Instead, disk-uuid@.service
should sequence itself Before units that access device nodes. Sequence
disk-uuid@ Before ignition-setup, and remove "After=disk-uuid.service"
from Ignition units.
dracut: correctly sequence disk-uuid@ before ignition-setup
The kernel will automatically bond it to the synthetic interface, so
ensure networkd doesn't try to configure it separately.
dracut: ignore Azure SR-IOV VF interface
automated PR: update CoC and legalese
The current invocation is broken (should be $env{DEVLINKS}) and
pointless, so drop it. The last arguments to the `mdadm --incremental`
command are just aliases that can be used in /etc/mdadm.conf (see the
"INCREMENTAL MODE" section of man 8 mdadm). We don't use
/etc/mdadm.conf in the initramfs, so just drop it.
99start-root: drop DEVLINKS from mdadm invocation
dracut: drop obsolete comment
Alter ignition-generator to only run ignition when coreos.first_boot is
present on the command line, add a base Ignition config that removes
coreos.first_boot from the grub config, add coreos.first_boot to the
grub config in the instructions in README.txt
Also reformat ignition-quench.ign to be more readable
Only run on first boot, enable the disks stage
README: Note instructions are for classic systems
Added a few binaries and also a few modules.
ignition-check-neednet.sh knows too much about distro-level networking
configuration.  In addition, other things in the initramfs might want to
conditionally enable networking, and they'd currently need to reimplement
ignition-check-neednet.sh to do so.

Instead, let the distro provide its own unit that checks for
/run/ignition/neednet.  That unit can use dependencies to sequence
ignition-fetch-offline.service correctly for its own needs.
@cgwalters
Copy link
Member

Overall big +1 on the idea!

@darkmuggle
Copy link
Contributor Author

darkmuggle commented Jul 22, 2020

The CI failure on this is expected since rootfs.uuid relies on the changes in coreos/fedora-coreos-config#526

Local test:

$ fcosa kola run rootfs.uuid
⚠️  Skipping kola test pattern "fcos.internet":
⚠️  https://github.com/coreos/coreos-assembler/pull/1478
⚠️  Skipping kola test pattern "podman.workflow":
⚠️  https://github.com/coreos/coreos-assembler/pull/1478
kola -p qemu-unpriv --output-dir tmp/kola run rootfs.uuid --denylist-test fcos.internet --denylist-test podman.workflow
=== RUN   rootfs.uuid
=== RUN   rootfs.uuid/RandomUUID
--- PASS: rootfs.uuid (37.20s)
    --- PASS: rootfs.uuid/RandomUUID (0.36s)
PASS, output in tmp/kola

@jlebon
Copy link
Member

jlebon commented Jul 22, 2020

This roughly looks good to me! Some things that popped out:

@darkmuggle
Copy link
Contributor Author

I think that we can coordinate this with @bgilbert's proposed changes easily.

  • I think 99emergency probably belongs better in f-c-c too? ISTM like the behaviour of what to do on initrd failure is more of a distro-specific thing than something we want to dictate with Ignition.

Ah, good catch. I did that in my first experiment but after an unreconcilable rebase I re-did it and missed it. Repushed.

Move conditional network startup out of ignition-dracut
@darkmuggle darkmuggle force-pushed the merged branch 3 times, most recently from dcfabba to 1d4053b Compare July 23, 2020 19:41
@darkmuggle darkmuggle changed the title WIP: Move Ignition-Dracut into Ignition Move Ignition-Dracut into Ignition Jul 23, 2020
@darkmuggle
Copy link
Contributor Author

@darkmuggle darkmuggle closed this Jul 23, 2020
@darkmuggle darkmuggle reopened this Jul 23, 2020
@darkmuggle darkmuggle marked this pull request as ready for review July 23, 2020 21:39
@darkmuggle darkmuggle requested a review from bgilbert July 23, 2020 21:44
Copy link
Contributor

@bgilbert bgilbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet