Skip to content

dkms: ensure shell scripts are executable in builds - #1263

Open
K-S-Manikandan wants to merge 1 commit into
NVIDIA:mainfrom
K-S-Manikandan:fix/dkms-executable-scripts
Open

dkms: ensure shell scripts are executable in builds#1263
K-S-Manikandan wants to merge 1 commit into
NVIDIA:mainfrom
K-S-Manikandan:fix/dkms-executable-scripts

Conversation

@K-S-Manikandan

@K-S-Manikandan K-S-Manikandan commented Jul 27, 2026

Copy link
Copy Markdown

Problem

Fixes #1258

DKMS build fails during kernel updates because .sh scripts in the build directory lack executable permissions (0644 instead of 0755).

Solution

Add PRE_BUILD step to kernel-open/dkms.conf that finds and chmod +x all .sh files before building. Uses find instead of hardcoded globs to safely handle nested directory structures without glob expansion errors.

Testing

Syntax verified locally. Full build validation relies on Debian 13 + DKMS environment (reporter's setup).

@CLAassistant

CLAassistant commented Jul 27, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@K-S-Manikandan
K-S-Manikandan force-pushed the fix/dkms-executable-scripts branch from 2f9d115 to c5012da Compare July 27, 2026 16:07
@K-S-Manikandan K-S-Manikandan changed the title nvidia: ensure shell scripts are executable in DKMS builds dkms: ensure shell scripts are executable in builds Jul 27, 2026
Add PRE_BUILD step to find and chmod +x all .sh files before building.
DKMS may not preserve file permissions when copying source to the build
directory, causing build failures on some systems.

Fixes NVIDIA#1258
@K-S-Manikandan
K-S-Manikandan force-pushed the fix/dkms-executable-scripts branch from c5012da to 09b92a0 Compare July 27, 2026 16:22
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.

[DKMS] Debian 13: Module build fails during kernel update due to non-executable .sh scripts in build directory

2 participants