Amazon Linux 2 is treated as el6 in script.rpm.sh
Note: GitLab is not presently certified on Amazon Linux 2, as Amazon Linux has a significantly newer kernel than EL7. This issue is about addressing an upstream limitation. Full certification and official builds as needed are being considered in &2195
Problem statement
Currently Amazon Linux 2 is resolved as el6 by the installation script script.rpm.sh. This is leading to problems, and will not work.
This script is maintained by PackageCloud, our provider for hosting our linux package repositories.
Replication steps
Create an AWS instance (OS: Amazon Linux 2), install GitLab EE.
Step 2 of https://about.gitlab.com/install/#centos-7 is shown below.
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
I've download the script and check its behavior manually.
- detect_os gets
amzn/2. - yum_repo_config_file is
https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/config_file.repo?os=amzn&dist=2&source=script. - Received content was for el6.
Solution
Work with our upstream provider to resolve the detection of Amazon Linux 2 to the right distribution.