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

install ALPINE_BASE_PKGS first if requested #26

Merged
merged 1 commit into from
Aug 20, 2023

Conversation

martinetd
Copy link

When a package has a pre-install script that adds users, the pre-install actually requires alpine-baselayout-data/busybox to successfully work, but this dependency isn't written anywhere.

After bringing this up on IRC rather than adding the dependency everywhere it was decided to make sure alpine-baselayout is installed first instead, so do this.

--initdb can be used multiple times with no ill side effects, but --updatedb is annoying and not actually useful (will automatically refresh every 4 hours, but starting from an empty directory it'll always fetch it anyway), so just remove it.


This fixes missing users on our systems because some package get installed too early

When a package has a pre-install script that adds users, the pre-install
actually requires alpine-baselayout-data/busybox to successfully work,
but this dependency isn't written anywhere.

After bringing this up on IRC rather than adding the dependency everywhere
it was decided to make sure alpine-baselayout is installed first instead,
so do this.

--initdb can be used multiple times with no ill side effects, but
--updatedb is annoying and not actually useful (will automatically
refresh every 4 hours, but starting from an empty directory it'll
always fetch it anyway), so just remove it.

Co-Authored-By: Jakub Jirutka <[email protected]>
@jirutka jirutka merged commit c7fa42d into alpinelinux:master Aug 20, 2023
2 checks passed
@jirutka
Copy link
Member

jirutka commented Aug 20, 2023

Thanks!

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