Bug 29205 - Partitionierung auf UCC Client kommt nicht mit leerer MSDOS Partitionstabelle klar
Partitionierung auf UCC Client kommt nicht mit leerer MSDOS Partitionstabelle...
Status: CLOSED FIXED
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: Image management
unspecified
Other Linux
: P5 normal
: UCC 1.0
Assigned To: Stefan Gohmann
Moritz Muehlenhoff
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-12 14:33 CET by Felix Botner
Modified: 2013-03-26 09:14 CET (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 Felix Botner univentionstaff 2012-11-12 14:33:50 CET
Bei einer leeren MSDOS Partitionstabelle auf dem Client wird im Moment keine GPT angelegt.

Wahrscheinlich ist es am sichersten, wenn man schon partitionieren will, die GPT immer anzulegen und nicht nur, wenn eine unbekannte Partitionstabelle gefunden wird:

scripts/ucc:
        # Read PT
        pt="$(/sbin/parted -s ${partition_device} unit MB print)"
        if echo "$pt" | grep -sq "unrecognised disk label"; then
                echo "Partition table on ${partition_device} is empty."
                echo "Creating GPT on ${partition_device}"
                parted -s "${partition_device}" mklabel GPT
        fi
Comment 1 Stefan Gohmann univentionstaff 2012-11-21 13:19:32 CET
Das ist im Code angepasst, allerdings noch nicht getestet.
Comment 2 Stefan Gohmann univentionstaff 2012-11-23 10:16:01 CET
(In reply to comment #1)
> Das ist im Code angepasst, allerdings noch nicht getestet.

Mein Test funktionierte.
Comment 3 Moritz Muehlenhoff univentionstaff 2012-12-20 14:18:03 CET
Auf einer ausgenullten Festplatte habe ich mit "parted -s /dev/sda mklabel msdos" ein Disklabel erzeugt.

Anschließend konnte ich erfolgreich UCC installieren.
Comment 4 Moritz Muehlenhoff univentionstaff 2013-03-26 09:14:15 CET
UCC 1.0 has been released: 
http://forum.univention.de/viewtopic.php?f=26&t=2417
http://forum.univention.de/viewtopic.php?f=54&t=2418

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