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

bin/build-distro: display debootstrap.log on failure/exit #170

Closed
wants to merge 1 commit into from

Conversation

simondeziel
Copy link
Member

This should be useful when Debian based distros fail to build. Here it is in action with Debian Sid:

# ./bin/build-distro images/debian.yaml amd64 container 1800 "${HOME}/build" -o image.architecture=amd64 -o image.release=sid -o image.variant=default -o source.url="https://deb.debian.org/debian"
...
I: Extracting util-linux...
I: Extracting zlib1g...
W: Upgrading non-merged-/usr environments post-bookworm is unsupported. Only do this for CI/QA infrastructure that will be re-bootstrapped rather than upgraded.
W: Failure trying to run: chroot "/root/build/rootfs" /bin/true
W: See /root/build/rootfs/debootstrap/debootstrap.log for details
Error: Error while downloading source: Failed to run "debootstrap": exit status 1
ERROR  [2024-05-03T16:11:44Z] Failed running imagebuilder                   err="Error while downloading source: Failed to run \"debootstrap\": exit status 1"
INFO   [2024-05-03T16:11:44Z] Removing cache directory  
                   
Debootstrap log:
2024-05-03 16:10:21 URL:https://deb.debian.org/debian/dists/sid/InRelease [198381/198381] -> "/root/build/rootfs/var/lib/apt/lists/partial/deb.debian.org_debian_dists_sid_InRelease" [1]
gpgv: Signature made Fri May  3 14:16:13 2024 UTC
gpgv:                using RSA key A7236886F3CCCAAD148A27F80E98404D386FA1D9
gpgv: Can't check signature: No public key
gpgv: Signature made Fri May  3 14:16:14 2024 UTC
gpgv:                using RSA key 4CB50190207B4758A3F73A796ED0E7B82643E131
gpgv: Good signature from "Debian Archive Automatic Signing Key (12/bookworm) <[email protected]>"
2024-05-03 16:10:24 URL:https://deb.debian.org/debian/dists/sid/main/binary-amd64/by-hash/SHA256/81d95018e90488deb9119f5b06b40fc6cfd8cc8c6e8919949650656ff5e2b5f4 [9847688/9847688] -> "/root/build/rootfs/var/lib/apt/lists/partial/deb.debian.org_debian_dists_sid_main_binary-amd64_Packages.xz" [1]
...
2024-05-03 16:11:41 URL:https://deb.debian.org/debian/pool/main/z/zlib/zlib1g_1.3.dfsg-3.1_amd64.deb [87580/87580] -> "/root/build/rootfs//var/cache/apt/archives/partial/zlib1g_1%3a1.3.dfsg-3.1_amd64.deb" [1]
chroot: failed to run command '/bin/true': No such file or directory

@simondeziel simondeziel closed this May 3, 2024
@simondeziel simondeziel deleted the debootstrap-logs branch May 3, 2024 18:12
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.

1 participant