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

Cleanup & useradd -l #95

Merged
merged 6 commits into from
Jun 6, 2024
Merged

Conversation

osteffenrh
Copy link
Contributor

This PR combines 2 changes

Avoid conflicts of python packages between pip and the Fedora system
by using a virtual environment.
The EDK2 dependencies are pre-installed too.

Signed-off-by: Oliver Steffen <[email protected]>
Avoid conflicts of python packages between pip and the Fedora system
by using a virtual environment.
The EDK2 dependencies are pre-installed too.

Signed-off-by: Oliver Steffen <[email protected]>
Avoid conflicts of python packages between pip and the Fedora system
by using a virtual environment.
The EDK2 dependencies are pre-installed too.

Signed-off-by: Oliver Steffen <[email protected]>
osteffenrh and others added 2 commits May 27, 2024 21:22
Remove the Ubuntu 20.04 image, since the distribution is very
old and this image is not maintainable anymore.
Note: The existing image will still be available on ghcr.

The availble python version (3.9) is too old for current EDK2.
The edk2-pytools are not available for it:

$ python --version
Python 3.9.5

python -m pip install --upgrade -r pip-requirements.txt
ERROR: Ignored the following versions that require a different python version:
      0.19.0 Requires-Python >=3.10;
      0.19.1 Requires-Python >=3.10;
      0.19.2 Requires-Python >=3.10;
      0.19.3 Requires-Python >=3.10;
      0.19.4 Requires-Python >=3.10;
      0.19.5 Requires-Python >=3.10;
      0.19.6 Requires-Python >=3.10;
      0.19.7 Requires-Python >=3.10;
      0.19.8 Requires-Python >=3.10;
      0.19.9 Requires-Python >=3.10;
      0.20.0 Requires-Python >=3.10;
      0.21.2 Requires-Python >=3.10;
      0.21.3 Requires-Python >=3.10;
      0.21.4 Requires-Python >=3.10;
      0.21.5 Requires-Python >=3.10
ERROR: Could not find a version that satisfies the requirement edk2-pytool-library==0.20.04
  (from versions: 0.9.0, 0.9.1, 0.9.2, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5,
  0.10.6, 0.10.7, 0.10.8, 0.10.9, 0.10.10, 0.10.11, 0.10.12, 0.10.13, 0.10.15, 0.11.0,
  0.11.1, 0.11.2, 0.11.4, 0.11.5, 0.11.6, 0.12.0, 0.12.1, 0.12.2, 0.13.0, 0.13.1, 0.14.0,
  0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.15.3, 0.15.4, 0.16.0, 0.16.1, 0.16.2, 0.17.0, 0.18.0,
  0.18.1, 0.18.2)
ERROR: No matching distribution found for edk2-pytool-library==0.20.0

Signed-off-by: Oliver Steffen <[email protected]>
Without the -l (--no-log-init) parameter when running useradd, it can
create huge /var/log/faillog and /var/log/lastlog files since it reserves
space for all users between 0 and the UID.

See docker/hub-feedback#2263 (comment)
for more information.

Signed-off-by: Rebecca Cran <[email protected]>
@osteffenrh osteffenrh force-pushed the cleanup+useradd-l branch from 54890dd to 8109f99 Compare May 27, 2024 19:22
@osteffenrh
Copy link
Contributor Author

Ping @bcran

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Unrelated to this PR, but I noticed some adduser commands are missing -o.

Add the missing `-o` flag on the `useradd` command in the
entrypoint scripts of the Fedora-37 and Ubuntu-22 images.

Signed-off-by: Oliver Steffen <[email protected]>
@osteffenrh
Copy link
Contributor Author

Unrelated to this PR, but I noticed some adduser commands are missing -o.

Indeed. Let's fix it in this cleanup PR too :-)

@osteffenrh osteffenrh merged commit 46802aa into tianocore:main Jun 6, 2024
3 checks passed
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.

2 participants