install_grub failing for centos7
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-
+ for target in '$targets'
+ output 'Running /tmp/in_
++ date
+ echo dib-run-parts Mon Aug 10 19:16:26 UTC 2015 Running /tmp/in_
dib-run-parts Mon Aug 10 19:16:26 UTC 2015 Running /tmp/in_
+ target_
+ date +%s.%N
+ /tmp/in_
+ set -eu
+ set -o pipefail
+ '[' -n /dev/loop0p1 ']'
+ PART_DEV=
+ [[ 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/
package grub2-1:
/dev/loop0: [64769]:525639 (/tmp/image.
$ echo $?
1
Changed in diskimage-builder: | |
importance: | Undecided → High |
Changed in diskimage-builder: | |
status: | In Progress → Fix Released |
I believe this is because we blindly attempt to install grub, regardless of its installed status.