Skip to content

Enable NFS v4.1/v4.2 for all targets - #4762

Merged
sairon merged 1 commit into
devfrom
nfs-v4
Jun 11, 2026
Merged

sairon merged 1 commit into
devfrom
nfs-v4

Conversation

@sairon

@sairon sairon commented Jun 10, 2026 •

Copy link
Copy Markdown
Member

Not all defconfigs enable NFS v4.1/v4.2 by default, most importantly it's not enabled for x86_64 (on the other hand, it is enabled on RPi, Rockchip and Amlogic). Explicitly enable NFS_V4 and its minor versions in the common config fragment to ensure it's available everywhere.

It can now be removed from the Rochckip fragment, while removing the migration option there for good (as Kconfig says it's very experimental).

Fixes #4742

Summary by CodeRabbit

  • Chores
    • Updated kernel filesystem configurations: enabled NFSv4 support in the primary build while disabling NFSv4 support in ARM64 Rockchip-specific builds.

Not all defconfigs enable NFS v4.1/v4.2 by default, most importantly
it's not enabled for x86_64 (on the other hand, it is enabled on RPi,
Rockchip and Amlogic). Explicitly enable NFS_V4 and its minor versions
in the common config fragment to ensure it's available everywhere.

It can now be removed from the Rochckip fragment, while removing the
migration option there for good (as Kconfig says it's very
experimental).

Fixes #4742
@sairon
sairon requested a review from agners June 10, 2026 18:12
@sairon sairon added os linux Linux kernel related issue labels Jun 10, 2026
@coderabbitai

coderabbitai Bot commented Jun 10, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 89c3c1bf-849a-404b-960d-3eb0cedb0dc7

📥 Commits

Reviewing files that changed from the base of the PR and between f561b24 and 94f89d7.

📒 Files selected for processing (2)
  • buildroot-external/kernel/v6.18.y/haos.config
  • buildroot-external/kernel/v6.18.y/kernel-arm64-rockchip.config
💤 Files with no reviewable changes (1)
  • buildroot-external/kernel/v6.18.y/kernel-arm64-rockchip.config

📝 Walkthrough

Walkthrough

This pull request adjusts NFS kernel configuration across different Home Assistant OS board profiles for Linux v6.18.y. The generic HAOS configuration gains explicit NFSv4 support, while the ARM64 Rockchip board configuration removes those NFSv4 options from its kernel build.

Changes

NFSv4 kernel configuration alignment

Layer / File(s) Summary
Enable NFSv4 in generic HAOS config
buildroot-external/kernel/v6.18.y/haos.config
Three kernel config options are added to enable NFSv4 and its minor versions: CONFIG_NFS_V4=y, CONFIG_NFS_V4_1=y, and CONFIG_NFS_V4_2=y.
Remove NFSv4 from Rockchip ARM64 config
buildroot-external/kernel/v6.18.y/kernel-arm64-rockchip.config
Previously-enabled NFSv4 configuration options (CONFIG_NFS_V4, CONFIG_NFS_V4_1, CONFIG_NFS_V4_2, CONFIG_NFS_V4_1_MIGRATION) are removed from the Rockchip board kernel config, while CONFIG_NFS_SWAP=y is retained.

🎯 1 (Trivial) | ⏱️ ~3 minutes


🐰 A hoppy hop through configs so fine,
NFSv4 now will mount and shine,
For Rockchip we trim what's not needed today,
But HAOS keeps them all the way! 🚀

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: enabling NFS v4.1/v4.2 across all targets by adding configs to the common kernel config.
Linked Issues check ✅ Passed The PR fully addresses issue #4742 by enabling CONFIG_NFS_V4_1 and CONFIG_NFS_V4_2 in the common config, fixing NFS v4.1/v4.2 unavailability on x86_64/ova.
Out of Scope Changes check ✅ Passed The changes are well-scoped: adding NFS v4.1/v4.2 support to common config and removing duplicate Rockchip-specific enablement aligns with the PR objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch nfs-v4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sairon
sairon merged commit 6dd5770 into dev Jun 11, 2026
1 check passed
@sairon
sairon deleted the nfs-v4 branch June 11, 2026 09:47
sairon added a commit that referenced this pull request Jun 17, 2026
After #4762, NFS_V4 was set as module in ODROIDs, Green and VIM3
kernels. This is because their defconfigs set the upper NFS_FS symbol to
module. Set it to built-in in these defconfigs as well (for other
targets this is handled by defconfigs from the kernel) and remove
redundant options we set in the haos fragment.
nyok92 pushed a commit to nyok92/HAOS-rock5b that referenced this pull request Jun 17, 2026
…ant#4773)

After home-assistant#4762, NFS_V4 was set as module in ODROIDs, Green and VIM3
kernels. This is because their defconfigs set the upper NFS_FS symbol to
module. Set it to built-in in these defconfigs as well (for other
targets this is handled by defconfigs from the kernel) and remove
redundant options we set in the haos fragment.
@sairon sairon mentioned this pull request Jun 18, 2026
pull Bot pushed a commit to josbu/operating-system that referenced this pull request Jun 18, 2026
…ant#4773)

After home-assistant#4762, NFS_V4 was set as module in ODROIDs, Green and VIM3
kernels. This is because their defconfigs set the upper NFS_FS symbol to
module. Set it to built-in in these defconfigs as well (for other
targets this is handled by defconfigs from the kernel) and remove
redundant options we set in the haos fragment.

(cherry picked from commit e2a0c9b)
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed linux Linux kernel related issue os

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to use NFS V4.1 and V4.2 (CONFIG_NFS_V4_1 is not set)

2 participants