Skip to content

Conversation

@mayur9210
Copy link

Fix devcontainer setup parsing failure on Rocky Linux 8.5

Fixes #232159

Description

The check-requirements-linux.sh script fails to parse the OS ID from /etc/os-release on Rocky Linux 8.5, causing devcontainer setup to fail with exit code 1.

Problem

The current regex pattern on line 33:

OS_ID="$(cat /etc/os-release | grep -Eo 'ID=([^"]+)' | sed -n '1s/ID=//p')"

The current regex pattern fails to parse quoted ID values like ID=\"rocky\"
in /etc/os-release.  Replace fragile regex parsing with robust sourcing
approach that handles both quoted and unquoted values correctly.
Copilot AI review requested due to automatic review settings January 7, 2026 23:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

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.

Devcontainer setup ad-hoc parsing fails on Rocky 8.5

2 participants