tianocore / containers

Repository to maintain and manage edk2 containers
Other
23 stars 27 forks source link

Add -l (--no-log-init) to useradd commands to avoid creating huge files #91

Closed ghost closed 6 months ago

ghost commented 6 months ago

Description

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 https://github.com/docker/hub-feedback/issues/2263#issuecomment-1205423533 for more information.

Issue #(issue)

Containers Affected

Fedora-37 Fedora-39 Ubuntu-20 Ubuntu-22

osteffenrh commented 6 months ago

Argh, pip conflicts with the system-wide python stuff. Let me add a virtualenv to avoid this in the future.

osteffenrh commented 6 months ago

@bcran, closing this in favor of #95, which solves the build issue (and includes your patch).