Skip to content

Commit 59038c4

Browse files
committed
Fix s390x image creation
1 parent 999cb50 commit 59038c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ci/linux-image.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ 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 /usr/bin/qemu-$arch-static /debootstrap/debootstrap --second-stage
2828
mv -f /mount.bak $dest/bin/mount
2929

3030
# ssh
31-
chroot $dest adduser --disabled-password --gecos "" cross
32-
echo "cross:cross" | chroot $dest chpasswd
31+
chroot $dest /usr/bin/qemu-$arch-static adduser --disabled-password --gecos "" cross
32+
echo "cross:cross" | chroot $dest /usr/bin/qemu-$arch-static chpasswd
3333

3434
# init
3535
cat <<EOF > $dest/init
@@ -39,7 +39,7 @@ EOF
3939
chmod +x $dest/init
4040

4141
# networking
42-
chroot $dest systemctl enable systemd-networkd
42+
chroot $dest /usr/bin/qemu-$arch-static systemctl enable systemd-networkd
4343

4444
cat <<EOF > $dest/etc/hostname
4545
qemu

0 commit comments

Comments
 (0)