<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11639</bug_id>
          
          <creation_ts>2017-06-09 08:09:42 +0000</creation_ts>
          <short_desc>installing grub and grub-efi with confliction</short_desc>
          <delta_ts>2018-01-22 01:27:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongxu Jia">hongxu.jia</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73932</commentid>
    <comment_count>0</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2017-06-09 08:09:42 +0000</bug_when>
    <thetext>*) Reproduce step
1. config

vim local.conf
---
MACHINE = &quot;qemux86-64&quot;
IMAGE_INSTALL_append = &quot; grub grub-efi&quot;
---

2. bitbake core-image-minimal
---
Transaction Summary
================================================================================
Install  33 Packages

Total size: 14 M 
Installed size: 33 M 
Running transaction check
Transaction check succeeded.
Running transaction test 
Error: Transaction check error:
  file /usr/bin/grub-editenv conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-editenv-2.02-r0.core2_64
  file /usr/bin/grub-file conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-fstest conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-glue-efi conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-menulst2cfg conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-mkimage conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-mklayout conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-mknetdir conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-mkpasswd-pbkdf2 conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-mkrelpath conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-mkrescue conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-mkstandalone conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-render-label conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-script-check conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/bin/grub-syslinux2cfg conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/sbin/grub-bios-setup conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/sbin/grub-install conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/sbin/grub-macbless conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/sbin/grub-ofpathname conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/sbin/grub-probe conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64
  file /usr/sbin/grub-sparc64-setup conflicts between attempted installs of grub-efi-2.02-r0.core2_64 and grub-2.02-r0.core2_64

Error Summary
-------------


ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /buildarea/raid0/hjia/build-yocto-20170609/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.42699
---

*) analysis

While installing grub and grub-efi, there are conflict files
in ${sysconfdir} ${datadir} ${bindir} ${sbindir}.

Debian use a common package grub-common for both of pc bios and efi,
and use package grub-pc-bin for pc bios, grub-efi-amd64-bin for efi.
Both of grub-pc-bin and grub-efi-amd64-bin requires grub-common.
https://packages.debian.org/sid/grub-common
https://packages.debian.org/jessie/grub-pc-bin
https://packages.debian.org/jessie/grub-efi-amd64-bin

Fedora use a common package grub2-tools for both of pc bios and efi,
and use package grub2 for pc bios, grub2-efi-modules for efi.
Both of grub2 and grub2-efi-modules requires grub2-tools.
https://www.rpmfind.net/linux/RPM/fedora/devel/rawhide/x86_64/g/grub2-tools-2.02-0.34.fc24.x86_64.html
https://www.rpmfind.net/linux/RPM/fedora/devel/rawhide/x86_64/g/grub2-2.02-0.34.fc24.x86_64.html
https://www.rpmfind.net/linux/RPM/fedora/devel/rawhide/x86_64/g/grub2-efi-modules-2.02-0.34.fc24.x86_64.html

For OE, we use a common package grub-common for both of pc bios and efi,
and use package grub for pc bios, grub-efi for efi.
Both of grubc and grub-efi runtime depends grub-common.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79175</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2018-01-22 01:27:01 +0000</bug_when>
    <thetext>Merged

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4e9bb03238af48c70075037a77094a8c1bddf284</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>