[r=cjwatson] Enable building of s390x cloud images.

ubuntu/yakkety
Colin Watson 9 years ago
commit 7f57c80cd3

3
debian/changelog vendored

@ -8,6 +8,9 @@ livecd-rootfs (2.369) UNRELEASED; urgency=medium
* live-build/ubuntu-core/hooks/11-remove-extra-packages.chroot: * live-build/ubuntu-core/hooks/11-remove-extra-packages.chroot:
- remove libicu52 hook - remove libicu52 hook
[ Daniel Watkins ]
* Enable building of s390x cloud images.
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@canonical.com> Mon, 14 Dec 2015 10:13:31 +0100 -- Łukasz 'sil2100' Zemczak <lukasz.zemczak@canonical.com> Mon, 14 Dec 2015 10:13:31 +0100
livecd-rootfs (2.368) xenial; urgency=medium livecd-rootfs (2.368) xenial; urgency=medium

@ -34,7 +34,7 @@ rmdir mountpoint
should_install_grub() { should_install_grub() {
case $architecture in case $architecture in
armhf|arm64) armhf|arm64|s390x)
return 1 return 1
;; ;;
*) *)
@ -56,5 +56,30 @@ if should_install_grub; then
rmdir mountpoint rmdir mountpoint
fi fi
if [ "$architecture" = "s390x" ]; then
# Do ZIPL install bits
mkdir mountpoint
mount_partition "${rootfs_dev_mapper}" mountpoint
# Write out cloudy zipl.conf for future kernel updates
cat << EOF > mountpoint/etc/zipl.conf
# This has been modified by the cloud image build process
[defaultboot]
default=ubuntu
[ubuntu]
target = /boot
image = /boot/vmlinuz
ramdisk = /boot/initrd.img
parameters = root=LABEL=cloudimg-rootfs
EOF
# Create bootmap file
mountpoint/sbin/zipl -V --image=mountpoint/boot/vmlinuz --ramdisk=mountpoint/boot/initrd.img --parameters='root=LABEL=cloudimg-rootfs' --target=mountpoint/boot/ --targetbase=/dev/loop0 --targettype=SCSI --targetblocksize=512 --targetoffset=2048
umount_partition mountpoint
rmdir mountpoint
fi
clean_loops clean_loops
trap - EXIT trap - EXIT

@ -142,6 +142,10 @@ if [[ "$arch" =~ (arm|arm64|aarch64) ]]; then
exit 0 exit 0
fi fi
if [ "$arch" = "s390x" ]; then
exit 0
fi
## Add ttyS0 for i386/amd64 for Trusty and newer ## Add ttyS0 for i386/amd64 for Trusty and newer
if [ "$arch" = "i386" -o "$arch" = "amd64" ]; then if [ "$arch" = "i386" -o "$arch" = "amd64" ]; then
add_serial_console ttyS0 add_serial_console ttyS0

Loading…
Cancel
Save