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

drbd-module-loader fails to compile drbd kernel modules on flatcar host due to missing elfutils #516

Open
rauanmayemir opened this issue Aug 6, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@rauanmayemir
Copy link

There was a fix for all the OSes that added missing package for elfutils, except for flatcar. In case people stumble upon this issue, here's a patched Dockerfile.flatcar version that helps resolve the issue:

FROM gentoo/portage AS portage
FROM gentoo/stage3

MAINTAINER Roland Kammerer <[email protected]>

COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo

RUN emerge -qv dev-libs/elfutils

ARG DRBD_VERSION=9.2.4

RUN wget https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz -O /drbd.tar.gz && \
    wget https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh -O /entry.sh && chmod +x /entry.sh

ENV LB_HOW compile

ENTRYPOINT /entry.sh

This is too casual to suggest for upstream, we might not want to have the whole portage repo in the runtime, so this will need some tweaks to be PR worthy.

Flatcar already includes a drbd kernel module, but it's v8.4.1 and it won't work with piraeus as it will use drbd-utils v9, so you'll have to disable bundled modules.

@WanzenBug
Copy link
Member

Flatcar is a tricky distribution to work with, and also one we do not have much experience with. We'd be happy to accept improvements by users.

@WanzenBug WanzenBug added the enhancement New feature or request label Aug 10, 2023
@rauanmayemir
Copy link
Author

Yes, currently I am moving blind and just learning things about gentoo. I will try to come up with a polished PR once we finalize our setup.

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

No branches or pull requests

2 participants