From 009aca99d8555d957be65d32704244f80c901a51 Mon Sep 17 00:00:00 2001 From: Robert C Jennings Date: Thu, 25 May 2017 20:35:23 -0500 Subject: [PATCH] ubuntu-cpc: Install grub in ppc64el images so they are bootable (LP: #1538610) --- debian/changelog | 7 +++++++ live-build/ubuntu-cpc/hooks/034-disk-image-ppc64el.binary | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/debian/changelog b/debian/changelog index b82f5ddf..75a82967 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +livecd-rootfs (2.209.8) trusty; urgency=medium + + [Daniel Watkins] + * Install grub in ppc64el cloud images so they are bootable (LP: #1538610) + + -- Robert C Jennings Tue, 23 May 2017 20:51:47 -0500 + livecd-rootfs (2.209.7) trusty; urgency=medium [Ben Howard] diff --git a/live-build/ubuntu-cpc/hooks/034-disk-image-ppc64el.binary b/live-build/ubuntu-cpc/hooks/034-disk-image-ppc64el.binary index 239f29f8..54d1ad03 100644 --- a/live-build/ubuntu-cpc/hooks/034-disk-image-ppc64el.binary +++ b/live-build/ubuntu-cpc/hooks/034-disk-image-ppc64el.binary @@ -40,6 +40,11 @@ EOF --boot-directory=/boot \ --target=powerpc-ieee1275 + chroot mountpoint dpkg-divert --local --rename /etc/grub.d/30_os-prober + chroot mountpoint update-grub + sed -i "s,root=.* ,root=LABEL=cloudimg-rootfs ,g" mountpoint/boot/grub/grub.cfg + chroot mountpoint dpkg-divert --remove --local --rename /etc/grub.d/30_os-prober + umount_partition mountpoint rmdir mountpoint }