Skip to content

Enable autofs support explicitly - #4984

Merged
agners merged 1 commit into
devfrom
autofs-network-mounts
Aug 27, 2026
Merged

agners merged 1 commit into
devfrom
autofs-network-mounts

Conversation

@agners

@agners agners commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Supervisor is moving network mounts to systemd .automount units (home-assistant/supervisor#7167), which makes the kernel automounter a hard requirement for network storage.

Every board already has it, but only as a side effect: Buildroot's systemd package force-enables CONFIG_AUTOFS_FS through SYSTEMD_LINUX_CONFIG_FIXUPS. Those fixups run after our board configs and fragments, so the option is even set on images where board/raspberrypi/kernel.config explicitly disabled it (that line was there until 11.2 and never had an effect โ€” confirmed on a HAOS 11.1 rpi3-64, whose /proc/config.gz has CONFIG_AUTOFS_FS=y).

Worth stating explicitly anyway, for two reasons:

  • KCONFIG_ENABLE_OPT skips symbols already set to =m, so the Rockchip boards (Green, ODROID-M1/M1S) build autofs as a module while every other board has it built in. Setting it in the shared fragment makes this uniform, so arming an automount never depends on on-demand module loading.
  • Nothing in our configs records that network storage depends on autofs. A kernel bump or a change to Buildroot's systemd fixups could take it away without any signal on our side.

No functional change for the boards that already build it in.

Summary by CodeRabbit

  • New Features
    • Enabled automatic filesystem mounting support in the system kernel.

Supervisor pairs every network mount with a systemd .automount unit,
so the kernel automounter is a hard requirement for network storage.

Today the option is only enabled as a side effect: Buildroot's systemd
package force-enables CONFIG_AUTOFS_FS through its kernel config
fixups. That works โ€” it even overrode the explicit disable the
Raspberry Pi config carried until 11.2 โ€” but nothing in our configs
states the dependency, and the fixup skips symbols already set to =m,
which leaves the Rockchip boards (Green, ODROID-M1/M1S) with autofs as
a module while every other board has it built in.

Set the option in the shared fragment to document the requirement and
build it in everywhere.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@agners
agners requested a review from sairon August 27, 2026 13:00
@coderabbitai

coderabbitai Bot commented Aug 27, 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 Plus

Run ID: 48699719-b359-4a74-8bcf-fd7fa69c9219

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 9d696bf and 007c1d4.

๐Ÿ“’ Files selected for processing (1)
  • buildroot-external/kernel/v6.18.y/haos.config

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


๐Ÿ“ Walkthrough

Walkthrough

The kernel configuration enables built-in autofs filesystem support for the v6.18.y kernel.

Changes

Kernel filesystem configuration

Layer / File(s) Summary
Enable autofs support
buildroot-external/kernel/v6.18.y/haos.config
Adds CONFIG_AUTOFS_FS=y to build autofs support into the kernel.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: โšช Minimal ยท up to 007c1

This change explicitly enables kernel automounter support for network storage without introducing an actionable merge-blocking risk; it is merge-ready after normal checks and review.

Suggested reviewers: sairon

Poem

A rabbit checks the kernel tune
Autofs now starts beneath the moon
One small setting joins the file
Built-in support appears in style
The config rests, neat and bright
Hop-hop, the build takes flight

๐Ÿšฅ 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 clearly and concisely describes the main change: explicitly enabling autofs support in the kernel configuration.
Docstring Coverage โœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0โ€ฆ
Linked Issues check โœ… Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check โœ… Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

โœจ Finishing Touches
๐Ÿงช Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch autofs-network-mounts

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.

@agners

agners commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

I've double checked my local builds, and a couple of real-world boards (notably RPi, ova, x86-64, back to HAOS 15.2), and indeed AUTOFS seems to be enabled everywhere.

@sairon sairon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sounds reasonable, LGTM!

@sairon sairon added os linux Linux kernel related issue labels Aug 27, 2026
@agners
agners merged commit d846fdb into dev Aug 27, 2026
3 checks passed
@agners
agners deleted the autofs-network-mounts branch August 27, 2026 14:01
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 4, 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.

2 participants