Skip to content

Add flatcar experimental example, another with coreos ignition #1657

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

Closed
wants to merge 1 commit into from

Conversation

afbjorklund
Copy link
Member

@afbjorklund afbjorklund commented Jul 6, 2023

This uses ignition and prefix, to support Flatcar Container Linux

It is the continuation of the original CoreOS, before Fedora CoreOS

Requirements:

Closes: #1372

See also https://www.flatcar.org/docs/latest/installing/vms/qemu/

@afbjorklund
Copy link
Member Author

Almost forgot, it also needs a symlink created from the '/mnt` directory:

index 94c8973..1120d07 100644
--- a/pkg/cidata/cidata.TEMPLATE.d/ignition.yaml
+++ b/pkg/cidata/cidata.TEMPLATE.d/ignition.yaml
@@ -47,6 +47,20 @@ systemd:
         Where=/var/mnt/lima-cidata
         Options=ro,mode=0700,dmode=0700,overriderockperm,exec,uid=0
 
+        [Install]
+        RequiredBy=local-fs.target
+    # Note1: symlink required on flatcar
+    # Note2: it already exists in coreos
+    - name: mnt-lima-cidata.service
+      enabled: true
+      contents: |
+        [Unit]
+        Before=lima-ssh-ready.service lima-install-containerd.service lima-install-guestagent.service
+
+        [Service]
+        Type=oneshot
+        ExecStart=/bin/sh -c "test -d /mnt/lima-cidata || ln -s /var/mnt/lima-cidata /mnt/lima-cidata"
+
         [Install]
         RequiredBy=local-fs.target
     - name: lima-ssh-ready.service

@afbjorklund afbjorklund changed the title Add flatcar experimental example Add flatcar experimental example, another with coreos ignition Jul 15, 2023
@afbjorklund afbjorklund marked this pull request as ready for review July 23, 2023 17:02
@afbjorklund afbjorklund marked this pull request as draft July 23, 2023 17:03
This uses ignition and prefix, to support Flatcar Container Linux

It is the continuation of the original CoreOS, before Fedora CoreOS

Signed-off-by: Anders F Björklund <[email protected]>
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.

Flatcar Container Linux support
1 participant