chef / chef/mixlib-install

install.sh fails on Amazon Linux without /etc/os-release

Open
#272 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
13
Forks
55
Avg merge
2d 15h
Merged PRs (30d)
8

Description

The current install.sh tries to source /etc/os-release, which doesn't exist on older Amazon Linux releases. We should gate that logic and just assume when they don't have it that they're EL 6 like. If you want to repro try Amazon Linux 2013

[root@ip-172-31-39-93 ec2-user]# ./install.sh
./install.sh: line 453: /etc/os-release: No such file or directory

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in install.sh around line 453 and reproduce the failure on Amazon Linux 2013 if possible. Verify that systems without /etc/os-release no longer abort and that the EL 6-like fallback is used without changing behavior on systems that provide the file.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
devops, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.