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

ignition-firstboot-complete.service: Remove firstboot network dir #1124

Conversation

kelvinfan001
Copy link
Member

coreos/fedora-coreos-config#659 attempts to
mount /boot read-only. Currently, the firstboot network dir in
/boot is cleaned up by a tmpfiles.d conf file. This may not be
possible once /boot is read-only, so we do the clean up here.

coreos/fedora-coreos-config#659 attempts to
mount `/boot` read-only. Currently, the firstboot network dir in
`/boot` is cleaned up by a tmpfiles.d conf file. This may not be
possible once `/boot` is read-only, so we do the clean up here.
@dustymabe
Copy link
Member

Feels like maybe this belongs not in Ignition since the copy firstboot network stuff is coreos specific. @bgilbert @arithx WDYT?

@jlebon
Copy link
Member

jlebon commented Nov 16, 2020

With the kargs-via-Ignition work, we'll want to bring that service into the initramfs. At that point, there'll be a bunch of things we need to do in /boot (removing stamp file, adding kargs to BLS, and removing the network config stuff). So maybe it's cleaner to just have that service live in f-c-c anyway. (And plus, IMO the /boot/ignition.firstboot stamp file thing is a distro implementation detail. All Ignition should care about is whether there's an ignition.firstboot karg or not.)

@bgilbert
Copy link
Contributor

I agree that coreos-network handling belongs in fedora-coreos-config. I'm not so sure about moving stamp file removal to fedora-coreos-config, because that'd be one more thing a distro maintainer would need to implement to get Ignition running in their distro, but we don't need to decide that here. I'll go ahead and close this.

@bgilbert bgilbert closed this Nov 16, 2020
@kelvinfan001
Copy link
Member Author

So would it be more suitable to have a new unit in 05core/usr/lib/systemd/system that remounts /boot rw to handle the job of removing the firstboot network dir in /boot?

@kelvinfan001 kelvinfan001 deleted the kfan-remove-firstboot-network-dir branch November 16, 2020 17:12
@jlebon
Copy link
Member

jlebon commented Nov 16, 2020

@kelvinfan001 I guess an alternative is to add a systemd service in /run/systemd/system which remounts /boot rw and deletes the file. Though having a service proper in the initramfs which does this too late in the initrd process SGTM too. In the end, we'll need late code in the initramfs like this for kargs anyway.

I'm not so sure about moving stamp file removal to fedora-coreos-config, because that'd be one more thing a distro maintainer would need to implement to get Ignition running in their distro, but we don't need to decide that here.

Yeah, let me open an issue for us to discuss that (edit: #1125).

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

Successfully merging this pull request may close these issues.

4 participants