grub-install command line options incompatible with Debian

Bug #1786699 reported by Antonio Terceiro
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm working on creating an autopkgtest-build-qemu tool for autopkgtest using vmdb2. When vmdb2 is trying to setup grub in an Ubuntu VM image, it fails like this:

ERROR: Command failed: chroot /tmp/tmpvsayg7te grub-install --target=i386-pc --no-nvram --force-extra-removable --no-floppy --modules=part_msdos part_gpt --grub-mkdevicemap=1
b''
b"grub-install: unrecognized option '--force-extra-removable'\nTry 'grub-install --help' or 'grub-install --usage' for more information.\n"

I noticed by reading the changelog that grub2 diverges from Debian there, and I don't particularly care about the details. However, having incompatible command lines unnecessarily breaks stuff that works in Debian and would otherwise Just Work in Ubuntu.

So, I would suggest that the --force-extra-removable option is kept in Ubuntu as a no-op.

Tags: patch
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I disagree. This needs to be fixed in Debian as well -- none of the options are crazy hacks, they are taken as explicit decisions meant to fix actual problems that people are having.

I have to rebase the patches for Debian, sure; but I don't think we should leave breadcrumbs around because a test would otherwise fail because of slight differences between Debian and Ubuntu.

Revision history for this message
Colin Watson (cjwatson) wrote :

As the Debian maintainer, I entirely disagree. Even though it's now the default behaviour, --force-extra-removable should be kept as a no-op, because it's used by other software. Interfaces matter.

Revision history for this message
Colin Watson (cjwatson) wrote :

(To be clear, I disagree with Mathieu and agree with Antonio.)

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I have an issue with leaving cruft around instead of actively fixing whatever depends on old behavior; months from now, or even years, we'll still have this switch around that does nothing -- that's more confusing for users than actively moving forward.

That said, I'll defer to Colin and add the no-op.

Are you saying that you otherwise have no issues with the idea of this patch and would consider including it in the Debian package?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks.

I think I'm basically OK with the idea of this patch, but I'd want to see it in isolation rather than needing to dig through the whole Ubuntu delta for it. Maybe I could have a merge request or something?

Revision history for this message
TimSmall (tim-seoss) wrote :

Hello,

FWIW this breaks the vmdb2 on Ubuntu ("grub: uefi" steps break), and makes it impossible to build uefi bootable Ubuntu images. It would be great to get his merged as a noop, perhaps it would best if the output warned that this is a deprecated flag and is a noop, to discourage its future use, and make sure it eventually goes away when this no longer risks breaking anything.

Revision history for this message
Florian Bruhin (the-compiler) wrote :

This also keeps me from using vmdb2 to build a custom Ubuntu image. FWIW I opened https://gitlab.com/larswirzenius/vmdb2/-/issues/36 to discuss fixing this from the vmdb2 side instead, which might be an alternative solution.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I've sent a patch to https://gitlab.com/larswirzenius/vmdb2/-/issues/36#note_485816538 which enables support for Ubuntu and Debian

Revision history for this message
Zygmunt Krynicki (zyga) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "This patch is against the vmdb2-0.19 upstream tag" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Zygmunt Krynicki (zyga) wrote :
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.