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

opensuse: init: handle untrusted repositories when installing basic packages #900

Merged
merged 1 commit into from
Aug 13, 2023

Conversation

g7
Copy link
Contributor

@g7 g7 commented Aug 8, 2023

If the image ships some untrusted repositories initial package installation might fail for these two separate reasons

  1. The package list obtained with zypper se is polluted with warnings coming
    from zypper itself about those untrusted repositories
  2. Even with a correct package list, zypper would still return a non-zero exit
    code to acknowledge those untrusted repositories

This commit tries to tackle both points. The reason of checking for the exit code rather than using --no-gpg-checks is that this way untrusted packages wouldn't get in without user intervention.

distrobox-init Fixed Show fixed Hide fixed
distrobox-init Fixed Show fixed Hide fixed
@89luca89 89luca89 added the CI label Aug 8, 2023
@89luca89
Copy link
Owner

89luca89 commented Aug 8, 2023

Hi @g7 there are some linting comments to fix 👍

…ackages

If the image ships some untrusted repositories initial package installation
might fail for these two separate reasons

1) The package list obtained with `zypper se` is polluted with warnings coming
   from zypper itself about those untrusted repositories
2) Even with a correct package list, zypper would still return a non-zero exit
   code to acknowledge those untrusted repositories

This commit tries to tackle both points. The reason of checking for the exit
code rather than using `--no-gpg-checks` is that this way untrusted packages
wouldn't get in without user intervention.

Signed-off-by: Eugenio Paolantonio <[email protected]>
@g7
Copy link
Contributor Author

g7 commented Aug 9, 2023

Hi, thanks! It should be good now :)

@89luca89
Copy link
Owner

Thanks a lot @g7 for the contribution 😄

@89luca89 89luca89 merged commit 0fd7b43 into 89luca89:main Aug 13, 2023
208 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants