Bug 29449 - bootable-Flag in Parted geht verloren
bootable-Flag in Parted geht verloren
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1-1
Assigned To: Felix Botner
Erik Damrose
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-29 10:44 CET by Moritz Muehlenhoff
Modified: 2014-03-31 14:06 CEST (History)
2 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

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Muehlenhoff univentionstaff 2012-11-29 10:44:58 CET
Das betrifft auch UCS 3.1, der Patch an dem Debian-Bug ist gegen Squeeze.

+++ This bug was initially created as a clone of Bug #29448 +++

Ein parted-Bug, der auch Ubuntu betrifft führt dazu, dass die einige
Hardwaresysteme nach der Bearbeitung von Festplattenpartitionen nicht mehr
booten:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673042

Das betrifft auch alle Ubuntu-Releases. Das sollte in der 12.04-Version gefixt
werden.
Comment 1 Felix Botner univentionstaff 2013-03-06 14:23:18 CET
Auch mit dem Patch ging das Boot Flag an der GPT Schutzpartition verloren:

-> fdisk  -l /dev/vdb | grep vdb1
/dev/vdb1   *           1        1567    12582911+  ee  GPT

-> parted -s /dev/vdb mkpart 6 2801 3000

-> fdisk  -l /dev/vdb| grep vdb1
/dev/vdb1               1        1567    12582911+  ee  GPT

Der Patch scheint also noch nicht zu reichen und wird daher erst einmal weggelassen. Statt dessen gibt es nun univention-set-bootable-flag-on-protective-mbr, mit dem das Flag wieder gesetzt werden kann.

-> univention-set-bootable-flag-on-protective-mbr -p /dev/vdb

-> fdisk  -l /dev/vdb| grep vdb1
/dev/vdb1   *           1        1567    12582911+  ee  GPT

Das Tool sollte in den Release Notes erwähnt werden, siehe Bug 30679#c1.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2013-03-06 14:33:53 CET
Wenn der Fehler nicht behoben ist, kann die Verwendung von parted dazu führen, dass das UCS-System nicht mehr bootfähig ist. Das Anlegen einer neuen Partition reicht bereits aus, dass das Flag entfernt wird.
Comment 3 Felix Botner univentionstaff 2013-03-06 14:57:45 CET
Nochmal schauen, ob es nicht doch mit einem neueren parted funktioniert, da die Auswirkungen zu gravierend sein können (nicht bootbares System).
Comment 4 Felix Botner univentionstaff 2013-03-06 16:46:29 CET
Unter 

http://anonscm.debian.org/gitweb/?p=parted/parted.git;a=commit;h=a73918ea6d9477ac3e8dad11ed62c87aecc49714

gibt es einen patch, der parted um die Unterstützung für "pMBR boot flag" erweitert. Dieser wurde für 3.1-1 übernommen (parted aus 3.0-0 nach 3.1-1 kopiert und patch hinzugefügt)

-> parted -s /dev/vdb mklabel gpt 

-> fdisk -l /dev/vdb
   Device Boot      Start         End      Blocks   Id  System
/dev/vdb1               1        1567    12582911+  ee  GPT

-> parted -s /dev/vdb disk_set pmbr_boot on

-> fdisk -l /dev/vdb
   Device Boot      Start         End      Blocks   Id  System
/dev/vdb1   *           1        1567    12582911+  ee  GPT

-> parted -s /dev/vdb disk_set pmbr_boot off

-> fdisk -l /dev/vdb
   Device Boot      Start         End      Blocks   Id  System
/dev/vdb1               1        1567    12582911+  ee  GPT

-> parted -s /dev/vdb disk_set pmbr_boot on

-> fdisk -l /dev/vdb
   Device Boot      Start         End      Blocks   Id  System
/dev/vdb1   *           1        1567    12582911+  ee  GPT

-> parted -s /dev/vdb mkpart 1 0 100
-> parted -s /dev/vdb mkpart 2 101 200

-> fdisk -l /dev/vdb
   Device Boot      Start         End      Blocks   Id  System
/dev/vdb1   *           1        1567    12582911+  ee  GPT



univention-set-bootable-flag-on-protective-mbr aus univention-installer-modules wurde wieder entfernt.
Comment 5 Erik Damrose univentionstaff 2013-03-18 12:16:09 CET
Patch vorhanden: OK
Bootflag lässt sich setzen und entfernen: OK
univention-set-bootable-flag-on-protective-mbr entfernt: OK
changelog eintrag: FAIL
Comment 6 Felix Botner univentionstaff 2013-03-18 16:43:26 CET
Changelog Eintrag ergänzt.
Comment 7 Erik Damrose univentionstaff 2013-03-19 12:28:16 CET
changelog eintrag: OK
-> Verified
Comment 8 Stefan Gohmann univentionstaff 2013-03-25 19:56:41 CET
UCS 3.1-1 has been released: 
 http://download.univention.de/doc/release-notes-3.1-1_en.pdf
 http://download.univention.de/doc/release-notes-3.1-1.pdf

If this error occurs again, please use "Clone This Bug".