You are not logged in.

#1 2011-01-28 23:40:16

ferda
Member
Registered: 2010-02-05
Posts: 67

[SOLVED] grub2-bios conflicts with its dependency grub2-common

I just tried to upgrade my system.

grub2 was to be replaced by grub2-bios which has grub2-common as a dependency.

At the same time it conflicts with that package and pacman refuses to install it.

Seems like it isn't in ABS yet, so I can't try to build the package without the conflict note (does pacman have an option to ignore package conflicts? I couldn't find one).

Last edited by ferda (2011-01-30 11:29:13)

Offline

#2 2011-01-29 00:20:08

canolucas
Member
Registered: 2010-05-23
Posts: 50

Re: [SOLVED] grub2-bios conflicts with its dependency grub2-common

same issue here..
whenever i want to install grub2-bios from testing, pacman says that the package is in conflict with grub2-common. and grub2-common is actually a dependency of grub2-bios. hope the mantainer had already noticed this..

ferda, to ignore the dependency conflicts, use pacman -Sd <package>. you will be able to install one or the other, but not the two of them. there is no way to ignore file conflicts between packages.
note that for grub2 >= 1.99, the installation procedure is quite different. you might want to check this.

Last edited by canolucas (2011-01-29 00:35:41)

Offline

#3 2011-01-29 03:40:13

ilpianista
Fellow developer
Registered: 2007-10-06
Posts: 568
Website

Re: [SOLVED] grub2-bios conflicts with its dependency grub2-common

Offline

#4 2011-01-29 05:34:58

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: [SOLVED] grub2-bios conflicts with its dependency grub2-common

For now download grub2-bios without provides=('grub2') from http://dl.dropbox.com/u/9710721/skodabe … pkg.tar.xz (actually should be an 'any' package but for the sake of dbscripts it is not an 'any' package). I don't have the i686 package with me. Also the grub2-efi-x86_64 package lacks grub-extras modules because of incorrect paths in the PKGBUILD. You can also download that package with grub-extras included, at http://dl.dropbox.com/u/9710721/skodabe … pkg.tar.xz .


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#5 2011-01-29 07:12:56

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: [SOLVED] grub2-bios conflicts with its dependency grub2-common

should be fixed with -2

Offline

#6 2011-01-29 08:49:01

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: [SOLVED] grub2-bios conflicts with its dependency grub2-common

Don't forget to read the updated grub2 wiki page http://wiki.archlinux.org/index.php/GRUB2 for the install instructions using the 1.99~rc1 packages.


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#7 2011-01-29 09:07:42

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: [SOLVED] grub2-bios conflicts with its dependency grub2-common

skodabenz wrote:

Don't forget to read the updated grub2 wiki page http://wiki.archlinux.org/index.php/GRUB2 for the install instructions using the 1.99~rc1 packages.

pacman -S grub2 should still install a similar set of packages as the old grub2 package for now (although this may change in the future, so getting used to grub2-bios is a good idea).

grub-install also installs for a bios system, for efi systems this is called slightly different. Maybe we can combine it in the future into one script.

Offline

#8 2011-01-29 09:33:19

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: [SOLVED] grub2-bios conflicts with its dependency grub2-common

pressh wrote:

grub-install also installs for a bios system, for efi systems this is called slightly different. Maybe we can combine it in the future into one script.

To clear the confusion, the grub-install script actually includes instructions for all platforms that grub2 supports (that includes bios, uefi, coreboot, sparc, yeelong etc.). The problem is that it detects the platform based on the variables set inside the script.

Lines 31 and 32 of grub-install has

target_cpu=i386
platform=pc

The same thing is repeated in grub_bios-install.

In grub_efi_x86_64-install, these variables are changed to

target_cpu=x86_64
platform=efi

and in grub_efi_i386-install, they are set to

target_cpu=i386
platform=efi

Currently there is no way to pass these variables to grub-install while launching it so even if you intention is to use grub-install for x86_64-efi, it will still install for i386-pc (BIOS) . The upstream is planning a overhaul of the grub-install ( https://savannah.gnu.org/task/?10026 ). Currently grub-install includes support for all platforms but the makefiles set it up to use only the platform its built for. Thats the reason sed was used package_grub2-common() in the main PKGBUILD.

In case of grub2 1.98 package a grub2-common package was not possible since the utilities for each platform were in separate files. In 1.99 the upstream has unified all the utilities across all the platforms, so a common package for the utilities is easier to maintain.

Last edited by skodabenz (2011-01-29 09:37:31)


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#9 2011-01-30 11:28:54

ferda
Member
Registered: 2010-02-05
Posts: 67

Re: [SOLVED] grub2-bios conflicts with its dependency grub2-common

Soved with the new packages.

Offline

Board footer

Powered by FluxBB