-
Notifications
You must be signed in to change notification settings - Fork 169
WIP: Changes for booting composefs native systems #3874
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
base: testing-devel
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # Disable services that don't work with bootc/composefs | ||
| disable coreos-warn-invalid-mounts.service | ||
| disable coreos-populate-lvmdevices.service | ||
| disable coreos-oci-migration-motd.service | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [Service] | ||
| ExecStart= | ||
| ExecStart=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [Service] | ||
| ExecStart= | ||
| ExecStart=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| [Unit] | ||
| After= | ||
| After=bootc-initramfs-setup.service | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An option here could be to create a wrapping unit/script that runs the right command depending on the kernel parameter, to avoid duplicating everything. |
||
|
|
||
| Requires= | ||
| Requires=bootc-initramfs-setup.service | ||
|
|
||
| ConditionKernelCommandLine= | ||
| ConditionKernelCommandLine=composefs | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [Unit] | ||
| ConditionKernelCommandLine= | ||
| ConditionKernelCommandLine=composefs |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| [Unit] | ||
| ConditionKernelCommandLine= | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's see if we can figure out a way to include both condition in the unit:
https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Conditions%20and%20Asserts
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah that would the way to do it. I have it in separate drop-ins right now just to keep track of what all I'm changing |
||
| ConditionKernelCommandLine=composefs | ||
|
|
||
| [Service] | ||
| ExecStart= | ||
| ExecStart=true | ||
|
|
||
| ExecStop= | ||
| ExecStop=true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [Unit] | ||
| ConditionKernelCommandLine= | ||
| ConditionKernelCommandLine=composefs |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [Unit] | ||
| ConditionKernelCommandLine= | ||
| ConditionKernelCommandLine=composefs |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [Unit] | ||
| ConditionKernelCommandLine= | ||
| ConditionKernelCommandLine=composefs |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [Unit] | ||
| ConditionKernelCommandLine= | ||
| ConditionKernelCommandLine=composefs |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [Unit] | ||
| ConditionKernelCommandLine= | ||
| ConditionKernelCommandLine=composefs |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [Unit] | ||
| ConditionKernelCommandLine= | ||
| ConditionKernelCommandLine=composefs |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| #!/bin/bash | ||
| # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- | ||
| # ex: ts=8 sw=4 sts=4 et filetype=sh | ||
|
|
||
| check() { | ||
| return 0 | ||
| } | ||
|
|
||
| depends() { | ||
| echo systemd | ||
| } | ||
|
|
||
| install() { | ||
| inst_simple "$moddir/coreos-boot-edit.service.conf" \ | ||
| "/etc/systemd/system/coreos-boot-edit.service.d/coreos-boot-edit.service.conf" | ||
|
|
||
| inst_simple "$moddir/coreos-ignition-unique-boot.conf" \ | ||
| "/etc/systemd/system/coreos-ignition-unique-boot.service.d/coreos-ignition-unique-boot.conf" | ||
|
|
||
| inst_simple "$moddir/ignition-ostree-check-rootfs-size.conf" \ | ||
| "/etc/systemd/system/ignition-ostree-check-rootfs-size.service.d/ignition-ostree-check-rootfs-size.conf" | ||
|
|
||
| inst_simple "$moddir/ignition-ostree-growfs.conf" \ | ||
| "/etc/systemd/system/ignition-ostree-growfs.service.d/ignition-ostree-growfs.conf" | ||
|
|
||
| inst_simple "$moddir/ignition-ostree-mount-var.conf" \ | ||
| "/etc/systemd/system/ignition-ostree-mount-var.service.d/ignition-ostree-mount-var.conf" | ||
|
|
||
| inst_simple "$moddir/ignition-ostree-transposefs-autosave-xfs.conf" \ | ||
| "/etc/systemd/system/ignition-ostree-transposefs-autosave-xfs.service.d/ignition-ostree-transposefs-autosave-xfs.conf" | ||
|
|
||
| inst_simple "$moddir/ignition-ostree-transposefs-detect.conf" \ | ||
| "/etc/systemd/system/ignition-ostree-transposefs-detect.service.d/ignition-ostree-transposefs-detect.conf" | ||
|
|
||
| inst_simple "$moddir/ignition-ostree-transposefs-restore.conf" \ | ||
| "/etc/systemd/system/ignition-ostree-transposefs-restore.service.d/ignition-ostree-transposefs-restore.conf" | ||
|
|
||
| inst_simple "$moddir/ignition-ostree-transposefs-save.conf" \ | ||
| "/etc/systemd/system/ignition-ostree-transposefs-save.service.d/ignition-ostree-transposefs-save.conf" | ||
|
|
||
| inst_simple "$moddir/ignition-ostree-uuid-boot.conf" \ | ||
| "/etc/systemd/system/ignition-ostree-uuid-boot.service.d/ignition-ostree-uuid-boot.conf" | ||
|
|
||
| inst_simple "$moddir/ignition-ostree-uuid-root.conf" \ | ||
| "/etc/systemd/system/ignition-ostree-uuid-root.service.d/ignition-ostree-uuid-root.conf" | ||
|
|
||
| inst_simple "$moddir/bootc-disable.preset" \ | ||
| "/etc/systemd/system-preset/bootc-disable.preset" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably add a condition to those unit that makes them not run on composefs native systems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would be better