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

feat: nfsd support as module package #713

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

TMaYaD
Copy link

@TMaYaD TMaYaD commented Apr 26, 2023

Build nfsd support as module package. This allows to build an nfsd extension to be used with projects like openebs/dynamic-nfs-provisioner.

Talos can load it via machine-config:

machine:
    # Configures the kernel.
    kernel:
        # Kernel modules to load.
        modules:
            - name: nfsd # Module name.

@@ -0,0 +1,9 @@
CONFIG_NFSD=m
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we simply build nfsd as a module as part of the main kernel build @frezbo ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we update the the Kconfig and only build the modules that we ship by default in talos, then these extra can be build as separate modules shipped as extensions, so we don't increase initramfs size

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, okay... makes sense.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the same approach as I'm taking here. Right?

LMK if there is anything else needed to get this approved and merged in.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the same approach as I'm taking here. Right?

meant adding to the actual kernel config under kernel/build/config-<arch>, I'll try to experiment and see if that approach works for our use case. Might take a while

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't currently figure out where kernel is being used to build installer. If you can point me, I'll be more than happy to run a few experiments of my own.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/siderolabs/talos/blob/main/Dockerfile#L77-L99 you can update this with your kernel image and do make installer PUSH=true

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quick question: does this work without rpc service running?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TMaYaD does this require rpc service? Else I can fix this up and get this merged.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I worked on this a while back and don't remember how I got this working. I'll check and get back to you.

Build nfsd support as module package. This allows to build an nfsd
extension to be used with projects like openebs/dynamic-nfs-provisioner.

Talos can load it via machine-config:
```yaml
machine:
    # Configures the kernel.
    kernel:
        # Kernel modules to load.
        modules:
            - name: nfsd # Module name.
```

Signed-off-by: Subhash Chandra <[email protected]>
@tyriis
Copy link

tyriis commented Apr 10, 2024

any chance to get this pushed?

@AngellusMortis
Copy link

With 1.8 having a lot of focus on improving volume management, this might be a great thing to try to get in.

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.

5 participants