Skip to content

[Feature] Add a separate CIFS toggle independent of the Networking feature #351

Closed

Description

@Najip

Describe the feature

Summary

CIFS is currently bundled into the all-or-nothing Networking feature set. There is no way to build with BBRv3, Qdisc, connection marking, and WireGuard enabled while excluding CIFS.

This request proposes splitting CIFS out into its own use_cifs toggle so users can keep the rest of the networking stack intact while opting out of CIFS.

Branch / fork context

This was observed on the feat/usb-arsenal branch, which I also maintain as a fork:

The behavior is present in the upstream feat/usb-arsenal branch as well, since the fork tracks it.

Relevant commit

The most recent upstream commit touching the CIFS action is:

  • f5b9553 — “feat(config): one wild fragment, appended by every step, verified in the build”
    f5b9553

This commit refactored how kernel config overrides are applied: all config-setting steps (including CIFS) now append to a shared kernel/common/wild.fragment via add-configs / append_fragment.py, instead of editing gki_defconfig directly. The fragment is consumed by both Kleaf (--defconfig_fragment=//common:wild.fragment) and build.sh (via BUILD_CONFIG_FRAGMENTS → POST_DEFCONFIG_CMDS).

While this commit did not introduce the CIFS/Networking coupling, it is the right place to implement a clean opt-out, since skipping the CIFS step now simply means not appending its entries to wild.fragment.

Current behavior

  • use_net: true enables the full networking set, which includes CIFS.
  • use_net: false disables the entire networking set, including CIFS, BBRv3, Qdisc, connection marking, TTL/Hop Limit targets, and WireGuard.

There is no per-feature control for CIFS alone.

Evidence

Two recent runs on the fork demonstrate the impact:

This suggests CIFS is a meaningful failure point for some users, and that being able to exclude it without losing the rest of the networking features would be valuable.

Proposed change

Add a dedicated boolean input:

use_cifs:
  description: "CIFS network filesystem support"
  type: boolean
  default: true

Wire it through:

  1. main.yml — add the use_cifs input and include it in the feature-set wiring.
  2. build.yml — accept use_cifs and pass it to the networking action.
  3. .github/actions/networking/action.yml — add a use_cifs input (default true) and make the Setup CIFS Configs step conditional:
- name: Setup CIFS Configs
  if: inputs.use_cifs != \'false\'
  uses: ./.github/actions/cifs
  with:
    version: ${{ inputs.version }}

Why this is easy now

With f5b9553, skipping the CIFS step means simply not appending these entries to wild.fragment:

CONFIG_CIFS=y
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NETFS_SUPPORT=y
CONFIG_KEYS=y
CONFIG_CIFS_XATTR=y
CONFIG_CIFS_POSIX=y

No defconfig editing or special-casing is needed — the existing fragment/verification flow already handles the rest.

Expected result

  • use_cifs: true (default): behavior unchanged; CIFS forced on as today.
  • use_cifs: false: CIFS-related configs and module-list pruning are skipped; BBRv3, Qdisc, connmark, TTL, and WireGuard remain available.

This would give users fine-grained control without sacrificing the rest of the networking stack.

Link to documentation

No response

Screenshots

No response

Activity

  1. changed the title [-]Add a separate CIFS toggle independent of the Networking feature[/-] [+][Feature] Add a separate CIFS toggle independent of the Networking feature[/+] on Nov 9, 2026
  2. github-actions commented on Nov 9, 2026

    @github-actions
    Contributor

    User Najip does not have write permissions

    github run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions