Bug 26251 - PyGrub sollte Grub2-Konfiguration bevorzugen
PyGrub sollte Grub2-Konfiguration bevorzugen
Status: CLOSED WONTFIX
Product: UCS
Classification: Unclassified
Component: Virtualization - Xen
UCS 3.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-27 09:01 CET by Moritz Muehlenhoff
Modified: 2023-06-28 10:46 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
PyGrub: Swap grub1 grub2 priority (1.18 KB, patch)
2012-02-27 11:08 CET, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Muehlenhoff univentionstaff 2012-02-27 09:01:34 CET
Siehe Bug 25981; der Installer sollte erkennen, wenn er in einem alten PyGrub gebootet wurde und dann die UCR-Variable grub/generate-menu-lst setzen. (Der Default der Variable in univention-grub müsste wenn diese Änderung durchgeführt wird auf no gesetzt werden)
Comment 1 Stefan Gohmann univentionstaff 2012-02-27 09:05:07 CET
Häufig werden die Instanzen in einem anderen System installiert und dann übertragen. Von daher sollte die menu.lst immer erstellt werden.

Oder hat das Nachteile?
Comment 2 Philipp Hahn univentionstaff 2012-02-27 09:38:17 CET
(In reply to comment #1)
> Häufig werden die Instanzen in einem anderen System installiert und dann
> übertragen. Von daher sollte die menu.lst immer erstellt werden.
> 
> Oder hat das Nachteile?

Siehe Bug #25981 comment 8
> Ein weiteres Problem (?) ist, das PyGrub die grub1-Konfiguration bevorzugt und
> damit die grub2-Konfiguration überspringt.

Die Grub2-Konfiguration ist die mit aller Sorgfalt erzeugte Version, aus der die Grub1-Konfiguration dann abgeleitet wird. Insbesondere die Konvertierung der root-Device Einträge vom Grub2 ins Grub1-Format ist fragil und mag in weniger Fällen korrekt sein und funktionieren.

Das sicherste wäre hier IMHO PyGrub zu patchen und dort Grub2 vor Grub1 zu bevorzugen.
Comment 3 Stefan Gohmann univentionstaff 2012-02-27 09:47:21 CET
(In reply to comment #2)
> (In reply to comment #1)
> > Häufig werden die Instanzen in einem anderen System installiert und dann
> > übertragen. Von daher sollte die menu.lst immer erstellt werden.
> > 
> > Oder hat das Nachteile?
> 
> Siehe Bug #25981 comment 8
> > Ein weiteres Problem (?) ist, das PyGrub die grub1-Konfiguration bevorzugt und
> > damit die grub2-Konfiguration überspringt.
> 
> Die Grub2-Konfiguration ist die mit aller Sorgfalt erzeugte Version, aus der
> die Grub1-Konfiguration dann abgeleitet wird. Insbesondere die Konvertierung
> der root-Device Einträge vom Grub2 ins Grub1-Format ist fragil und mag in
> weniger Fällen korrekt sein und funktionieren.
> 
> Das sicherste wäre hier IMHO PyGrub zu patchen und dort Grub2 vor Grub1 zu
> bevorzugen.

Ja, das sollte dann nach Upstream gehen, damit auch andere Xen-Installationen das "richtig" machen.
Comment 4 Philipp Hahn univentionstaff 2012-02-27 11:08:35 CET
Created attachment 4226 [details]
PyGrub: Swap grub1 grub2 priority

(In reply to comment #3)
> Ja, das sollte dann nach Upstream gehen, damit auch andere Xen-Installationen
> das "richtig" machen.

Das ist in Xen-unstable (4.2) bereits umgestellt:
<http://xenbits.xen.org/hg/xen-unstable.hg/rev/5e1032229546>

Für 4.1.2 ist ein äquivalenter Patch angehängt.
Comment 5 Philipp Hahn univentionstaff 2017-04-21 16:24:01 CEST
UCS-3.x is OoM.
Xen is OoM.