install_grub failing for centos7

Bug #1483385 reported by Abel Lopez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
High
Abel Lopez

Bug Description

The VM element is failing when building centos7

$ disk-image-create -a amd64 -o centos7.qcow2 centos7 vm
...
dib-run-parts Mon Aug 10 19:16:26 UTC 2015 50-remove-bogus-udev-links completed
+ for target in '$targets'
+ output 'Running /tmp/in_target.d/finalise.d/51-bootloader'
++ date
+ echo dib-run-parts Mon Aug 10 19:16:26 UTC 2015 Running /tmp/in_target.d/finalise.d/51-bootloader
dib-run-parts Mon Aug 10 19:16:26 UTC 2015 Running /tmp/in_target.d/finalise.d/51-bootloader
+ target_tag=51-bootloader
+ date +%s.%N
+ /tmp/in_target.d/finalise.d/51-bootloader
+ set -eu
+ set -o pipefail
+ '[' -n /dev/loop0p1 ']'
+ PART_DEV=/dev/loop0p1
+ [[ amd64 =~ ppc ]]
++ echo /dev/loop0p1
++ sed -e s#p1##
++ sed -e s#mapper/##
+ BOOT_DEV=/dev/loop0
+ DIB_EXTLINUX=0
+ '[' 0 '!=' 0 ']'
+ install_grub2
+ '[' -f /tmp/grub/install ']'
+ source /tmp/grub/install
++ rpm -i /tmp/grub/grub2-2.02-0.16.el7.centos.x86_64.rpm
 package grub2-1:2.02-0.16.el7.centos.x86_64 is already installed
/dev/loop0: [64769]:525639 (/tmp/image.aoY0qNT4/image.raw)

$ echo $?
1

Revision history for this message
Abel Lopez (al592b) wrote :

I believe this is because we blindly attempt to install grub, regardless of its installed status.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/211334

Changed in diskimage-builder:
assignee: nobody → Abel Lopez (al592b)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on diskimage-builder (master)

Change abandoned by Abel Lopez (<email address hidden>) on branch: master
Review: https://review.openstack.org/211334
Reason: This change breaks the fedora element

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/211683

Ben Nemec (bnemec)
Changed in diskimage-builder:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on diskimage-builder (master)

Change abandoned by Ben Nemec (<email address hidden>) on branch: master
Review: https://review.openstack.org/211683
Reason: Yeah, that seems reasonable. As always, feel free to reopen if you feel this change still needs to be made.

Changed in diskimage-builder:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.