Skip to content

Commit

Permalink
debug opensuse build
Browse files Browse the repository at this point in the history
  • Loading branch information
sylirre committed Jan 9, 2025
1 parent 489e943 commit df7fce0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions distro-build/opensuse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@ bootstrap_distribution() {
docker save --output "${WORKDIR}/opensuse-image-dump-${arch}.tar" \
"opensuse/tumbleweed@${digest}"

echo "Listing ${WORKDIR}:"
sudo ls "${WORKDIR}"

sudo rm -rf "${WORKDIR}/opensuse-tmp" "${WORKDIR}/opensuse-$(translate_arch "$arch")"
mkdir "${WORKDIR}/opensuse-tmp"
sudo mkdir -m 755 "${WORKDIR}/opensuse-$(translate_arch "$arch")"
sudo tar -x --strip-components=1 \
-f "${WORKDIR}/opensuse-image-dump-${arch}.tar" \
-C "${WORKDIR}/opensuse-tmp"
echo "Listing ${WORKDIR}/opensuse-tmp:"
sudo ls "${WORKDIR}/opensuse-tmp"
sudo tar -xpf "${WORKDIR}/opensuse-tmp"/layer.tar \
-C "${WORKDIR}/opensuse-$(translate_arch "$arch")"
sudo rm -rf "${WORKDIR}/opensuse-tmp"
Expand Down

0 comments on commit df7fce0

Please sign in to comment.