Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#988392: Impossible to install grub-pc and grub-efi-amd64 in parallel

317 views
Skip to first unread message

Paul Menzel

unread,
May 11, 2021, 3:30:03 PM5/11/21
to
Package: src:grub
Version: 2.04-18
Severity: normal


Dear Debian folks,


I have a Debian installation on a disk, I carry around, and I want to
boot on BIOS and (U)EFI systems. This would be possible with the switch
`--target`.

sudo grub-install --target=i386-pc --boot-directory=/boot /dev/sda

and

sudo grub-install --target=x86_64-efi /dev/sda

Unfortunately I am unable to install both packages in parallel as they
conflict (Replaces?) with each other.

$ apt show grub-pc
[…]
Replaces: grub, grub-common (<= 1.97~beta2-1), grub-coreboot,
grub-efi-amd64, grub-efi-ia32, grub-ieee1275, grub-legacy, grub2 (<<
2.04-18)

The GRUB build system also does not seem to allow to configure the build
to build the platforms in parallel, but in the end the files in
`/usr/lib/grub/` should be able to coexist.

It’ be great if Debian’s GRUB packages could be installed in parallel.


Kind regards,

Paul

Paul Menzel

unread,
May 12, 2021, 3:10:03 AM5/12/21
to
Dear Colin,


Am 11.05.21 um 23:37 schrieb Colin Watson:
> On Tue, May 11, 2021 at 09:19:28PM +0200, Paul Menzel wrote:
>> I have a Debian installation on a disk, I carry around, and I want to boot
>> on BIOS and (U)EFI systems. This would be possible with the switch
>> `--target`.
>>
>> sudo grub-install --target=i386-pc --boot-directory=/boot /dev/sda
>>
>> and
>>
>> sudo grub-install --target=x86_64-efi /dev/sda
>>
>> Unfortunately I am unable to install both packages in parallel as they
>> conflict (Replaces?) with each other.
>>
>> $ apt show grub-pc
>> […]
>> Replaces: grub, grub-common (<= 1.97~beta2-1), grub-coreboot, grub-efi-amd64, grub-efi-ia32, grub-ieee1275, grub-legacy, grub2 (<< 2.04-18)
>
> The purpose of grub-pc and grub-efi-amd64 is to own the system's boot
> process, and so only one of those may be installed at once; those
> Conflicts are deliberate. However, to support your use case, you can
> install grub-pc-bin and grub-efi-amd64-bin in parallel, and doing so
> gives you enough to be able to run the grub-install commands you're
> asking for.

As always thank you very much for the fast and helpful reply with the
solution. Sorry for not thinking of that myself.


Kind regards,

Paul
0 new messages