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

sysext: turn vim to a sysext image #2502

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

tormath1
Copy link
Contributor

@tormath1 tormath1 commented Dec 3, 2024

In this PR, we propose to turn vim to a sysext image built without minimal compiling option. The sysext will be enabled by default to not break existing Vim usage.

  • Folks interested to have vim on Flatcar will enjoy the full experience
  • Folks not interested to have vim on Flatcar (and its regular amount of CVEs) will be able to remove it

One could drop Vim from Flatcar with the current configuration:

variant: flatcar
version: 1.1.0
storage:
  files:
    - path: /etc/flatcar/enabled-sysext.conf
      overwrite: true
      contents:
        inline: |
          -vim

How to use

Use vim as usual:

core@localhost ~ $ systemd-sysext status
HIERARCHY EXTENSIONS         SINCE
/opt      none               -
/usr      containerd-flatcar Tue 2024-12-03 14:33:23 UTC
          docker-flatcar
          flatcar-vim
          oem-qemu

Note / TODO:

  • This currently needs to be reworked (for some reasons Vim is still in the generic image)
  • We might need to rework the way we enable / disable sysexts images (e.g using /etc/flatcar/sysexts.d/ drop-ins files)
  • Need to check the size of the new generic image with the "huge" vim:
$ du --si flatcar-vim.raw
5.7M	flatcar-vim.raw

Related to:

Signed-off-by: Mathieu Tortuyaux <[email protected]>
This enables regular Vim installation ('huge')

Signed-off-by: Mathieu Tortuyaux <[email protected]>
Signed-off-by: Mathieu Tortuyaux <[email protected]>
@tormath1 tormath1 added the main label Dec 3, 2024
@tormath1 tormath1 self-assigned this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant