Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu noble 24.04 fails due to regex #4245

Open
bdellegrazie opened this issue Nov 8, 2024 · 1 comment · May be fixed by #4246
Open

ubuntu noble 24.04 fails due to regex #4245

bdellegrazie opened this issue Nov 8, 2024 · 1 comment · May be fixed by #4246

Comments

@bdellegrazie
Copy link

bdellegrazie commented Nov 8, 2024

Hi,

When testing with Ubuntu 24.04 the nodes fail to install the runner due to the following line:

os_id=$(awk -F= '/^ID/{print $2}' /etc/os-release)

Specifically, the condition:

os_id=$(awk -F= '/^ID/{print $2}' /etc/os-release)

On Ubuntu 24.04, the source file (/etc/os-release) looks something like:

ID=ubuntu
ID_LIKE=debian

which results in os_id having a value of:

ubuntu
debian

The correct expression is simply:

os_id=$(awk -F= '/^ID=/{print $2}' /etc/os-release)

I'll raise a PR.

bdellegrazie added a commit to bdellegrazie/terraform-aws-github-runner that referenced this issue Nov 8, 2024
On Ubuntu 24.04 there is another variable `ID_LIKE` that appears in
the `/etc/os-release` file. This change fixes the regex match
to only match ID and not ID_LIKE

closes philips-labs#4245
@bdellegrazie bdellegrazie linked a pull request Nov 8, 2024 that will close this issue
@ay0o
Copy link

ay0o commented Nov 11, 2024

Related to #4178

bdellegrazie added a commit to bdellegrazie/terraform-aws-github-runner that referenced this issue Nov 13, 2024
On Ubuntu 24.04 there is another variable `ID_LIKE` that appears in
the `/etc/os-release` file. This change fixes the regex match
to only match ID and not ID_LIKE

closes philips-labs#4245
bdellegrazie added a commit to bdellegrazie/terraform-aws-github-runner that referenced this issue Nov 16, 2024
On Ubuntu 24.04 there is another variable `ID_LIKE` that appears in
the `/etc/os-release` file. This change fixes the regex match
to only match ID and not ID_LIKE

closes philips-labs#4245
bdellegrazie added a commit to bdellegrazie/terraform-aws-github-runner that referenced this issue Nov 19, 2024
On Ubuntu 24.04 there is another variable `ID_LIKE` that appears in
the `/etc/os-release` file. This change fixes the regex match
to only match ID and not ID_LIKE

closes philips-labs#4245
bdellegrazie added a commit to bdellegrazie/terraform-aws-github-runner that referenced this issue Nov 21, 2024
On Ubuntu 24.04 there is another variable `ID_LIKE` that appears in
the `/etc/os-release` file. This change fixes the regex match
to only match ID and not ID_LIKE

closes philips-labs#4245
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 a pull request may close this issue.

2 participants