Skip to content
New issue

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

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

Already on GitHub? # to your account

create_k3s_sysext.sh: create systemd unit files #69

Merged
merged 3 commits into from
Apr 30, 2024

Conversation

johanneskastl
Copy link
Contributor

create systemd unit files

create /usr/local/lib/systemd/system/k3s.service and /usr/local/lib/systemd/system/k3s-agent.service

unit files were taken from the k3s install script at get.k3s.io.

…e and /usr/local/lib/systemd/system/k3s-agent.service
create_k3s_sysext.sh Outdated Show resolved Hide resolved
@pothos pothos mentioned this pull request Apr 29, 2024
@johanneskastl johanneskastl force-pushed the 20240426_add_k3s_systemd_unit branch from c91bfe0 to 4145400 Compare April 29, 2024 19:43
@pothos pothos merged commit ef4d4a7 into flatcar:main Apr 30, 2024
@johanneskastl johanneskastl deleted the 20240426_add_k3s_systemd_unit branch April 30, 2024 09:21
@kastl-ars
Copy link

I just had some time to actually test the k3s sysext, which fails:

$ systemd-sysext refresh
Failed to read metadata for image k3s-v1.29.2+k3s1-x86-64: No medium found
$ ls -lh /etc/extensions/
total 56M
lrwxrwxrwx. 1 root root   9 May  7 13:46 containerd-flatcar.raw -> /dev/null
lrwxrwxrwx. 1 root root   9 May  7 13:46 docker-flatcar.raw -> /dev/null
-rw-r--r--. 1 root root 56M May  7 13:46 k3s-v1.29.2+k3s1-x86-64.raw
lrwxrwxrwx. 1 root root  33 May  7 13:46 oem-qemu.raw -> /oem/sysext/oem-qemu-3815.2.2.raw
$

Should I open up an issue?

@pothos
Copy link
Member

pothos commented May 7, 2024

The file name must be /etc/extensions/k3s.raw which can be a symlink to a folder that has versioned files as done in the README and managed by systemd-sysupdate.

@kastl-ars
Copy link

Ah, thanks @pothos, that works. I'll prepare a PR for the README, to make the k3s and rke2 sections more self-contained, with all the bits and pieces needed.

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

Successfully merging this pull request may close these issues.

4 participants