~comcloudway/builds.sr.ht

1a70bc35c97e81bcd7149a569eb04f0dc8f4caf3 — Drew DeVault 5 years ago a822c9a
image/debian: ppc64el kernel is "vmlinux"
2 files changed, 6 insertions(+), 6 deletions(-)

M images/debian/functions
M images/debian/genimg
M images/debian/functions => images/debian/functions +1 -1
@@ 24,7 24,7 @@ boot() {
			_boot \
				$(cpu_opts ppc64le) \
				-device virtio-blk-pci,drive=root \
				-kernel "$wd/$arch/vmlinuz" \
				-kernel "$wd/$arch/vmlinux" \
				-initrd "$wd/$arch/initrd.img" \
				-append "root=/dev/vda3"
			;;

M images/debian/genimg => images/debian/genimg +5 -5
@@ 5,17 5,17 @@ case $arch in
	amd64)
		iface=ens3
		qarch=x86_64
		kernel=linux-image-amd64
		kpkg=linux-image-amd64
		;;
	arm64)
		iface=enp0s1
		qarch=aarch64
		kernel=linux-image-arm64
		kpkg=linux-image-arm64
		;;
	ppc64el)
		iface=ens3
		qarch=ppc64le
		kernel=linux-image-powerpc64le
		kpkg=linux-image-powerpc64le
		;;
	*)
		echo "unsupported architecture $arch"


@@ 109,7 109,7 @@ EOF
run_root apt-key update
run_root apt-get update --allow-releaseinfo-change
run_root apt-get -y install locales
run_root apt-get -y install $kernel
run_root apt-get -y install $kpkg
run_root apt-get -y install \
	build-essential git mercurial ssh sudo dirmngr apt-transport-https



@@ 153,7 153,7 @@ case "$arch" in
		cp /mnt/boot/initrd.img-* $arch/initrd.img
		;;
	ppc64el)
		cp /mnt/boot/vmlinuz-* $arch/vmlinuz
		cp /mnt/boot/vmlinux-* $arch/vmlinux
		cp /mnt/boot/initrd.img-* $arch/initrd.img
		;;
esac