Skip to content

Commit 5772e9c

Browse files
committed
Fix s390x image creation
1 parent 999cb50 commit 5772e9c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ language: rust
22
rust: stable
33
sudo: required
44
dist: trusty
5+
addons:
6+
apt:
7+
packages:
8+
# register qemu interpreters because inside docker it is not possible
9+
# it is required by qemu-debootstrap (used by s390x)
10+
- binfmt-support
11+
- qemu-user-static
512
services:
613
- docker
714
install:

ci/docker/s390x-unknown-linux-gnu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
55
gcc libc6-dev \
66
gcc-s390x-linux-gnu libc6-dev-s390x-cross \
77
debian-archive-keyring debootstrap cpio \
8-
qemu-user-static qemu-system-s390x \
8+
binfmt-support qemu-user-static qemu-system-s390x \
99
sshpass openssh-client
1010

1111
COPY linux-image.sh /

ci/linux-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ qemu-debootstrap \
2424
rm -f $dest/var/lib/dpkg/status
2525
mv $dest/bin/mount /mount.bak
2626
cp $dest/bin/true $dest/bin/mount
27-
chroot $dest /debootstrap/debootstrap --second-stage
27+
chroot $dest /debootstrap/debootstrap --second-stage || cat $dest//debootstrap/debootstrap.log && false
2828
mv -f /mount.bak $dest/bin/mount
2929

3030
# ssh

0 commit comments

Comments
 (0)