Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

[RFE] allow running in chroot-like environment #28

Open
malt3 opened this issue Jan 20, 2023 · 3 comments
Open

[RFE] allow running in chroot-like environment #28

malt3 opened this issue Jan 20, 2023 · 3 comments
Labels
question Further information is requested

Comments

@malt3
Copy link

malt3 commented Jan 20, 2023

One pattern I am trying to accomplish is as follows:

  • use distributions bootstrapping mechanism
    • debootstrap
    • dnf --installroot
    • apk --root
  • try to get hashes from generated sysroot

As a workaround, I am copying repro-get into the generated sysroot and run systemd-nspawn as an easier chroot alternative to then run repro-get hash generate.
I believe having support for alternative sysroots in repro-get would simplify this process significantly!

@malt3 malt3 changed the title [RFE] allow running in chroot like environment [RFE] allow running in chroot-like environment Jan 20, 2023
@AkihiroSuda
Copy link
Member

This may work for you?

repro-get --distro=debian --cache=/tmp/cache download SHA256SUMS-amd64 
repro-get --cache=/tmp/cache cache export .

YOUR-CHROOT-TOOL *.dpkg

@AkihiroSuda AkihiroSuda added the question Further information is requested label Jan 20, 2023
@kpcyrd
Copy link
Contributor

kpcyrd commented Jan 22, 2023

I think you'd probably want repro-get to do the bootstrapping, if you use debootstrap or pacstrap you possibly need to do complicated downgrades that might break in the future.

@malt3
Copy link
Author

malt3 commented Jan 24, 2023

Let me clarify what I am trying to achieve here:

This is supposed to be a method to update a SHA256SUM file (check with upstream repositories for new versions of packages).
In order to do so I

  • bootstrap a system using one of the aforementioned package managers and a list of packages without explicit versions (without repro-get and without a SHA256SUMS file).
  • collect hashes of all installed packages in the generated sysroot

I would then like to manually review the generated hashes / updated versions so I have a kind of dependency lock file that I can store in git.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants