Bug 15831 - Falsches device in /dev/mapper/ führt zu Segmentation fault in PartedCreate
Falsches device in /dev/mapper/ führt zu Segmentation fault in PartedCreate
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCS Installer - DVD
UCS 2.3
Other Linux
: P5 normal (vote)
: UCS 2.3
Assigned To: Sönke Schwardt-Krummrich
Daniel Hofmann
:
Depends on:
Blocks: 14432
  Show dependency treegraph
 
Reported: 2009-10-06 17:21 CEST by Janek Walkenhorst
Modified: 2009-12-21 08:48 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 Janek Walkenhorst univentionstaff 2009-10-06 17:21:49 CEST
Die profilbasierte Installation schlägt fehl, da das Programm PartedCreate 4x mit Segmentation fault beendet und dadurch keine Partition formatiert ist.

# PartedCreate -d /dev/sda1 -t ext3
device-mapper: deps ioctl failed: No such device or address
Segmentation fault
# cat /proc/partitions
major minor  #blocks  name
   8     0    8388608 sda
   8     1     104391 sda1
   8     2     771120 sda2
   8     3    7510387 sda3
 254     0    7340032 dm-0

Genutzte DVD:
/var/univention/buildsystem2/isotests/ucs_2.3-0-kernel2.6.18-20091006061920-dvd-amd64.iso
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2009-10-08 14:11:54 CEST
Es wird in der initrd das Devicefile /dev/mapper/vg_ucs-vol1 mitgebracht, was eigentlich impliziert, daß da eine Volumegroup vorhanden ist. 
parted bzw. PartedCreate kommt damit nicht klar und segfaulted.

/dev/mapper/vg_ucs-vol1 ist auch auf norrebo vorhanden. omar nutzt kein LVM, weshalb nur amd64-Systeme betroffen sind. Das DVD-Buildskript muss daher alles bis auf control aus /dev/mapper/ entfernen, bevor die initrd zusammengebaut wird.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2009-10-08 15:54:45 CEST
build-cd-ng-2.3 und build-cd-ng entfernen jetzt in der Initrd in /dev/mapper/ alle Dateien, die nicht control heissen.

Änderung ist eingecheckt aber noch nicht importiert und gebaut
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2009-10-13 11:00:24 CEST
Änderungen sind eingecheckt. Es ist jetzt nur noch /dev/mapper/control auf der Initrd vorhanden.
Comment 4 Daniel Hofmann univentionstaff 2009-10-16 14:18:21 CEST
Profilbasierte Installation mit amd64 erfolgreich, PartedCreate segfaulted nicht, keine verdächtigen Dinge in /dev/mapper.
Comment 5 Stefan Gohmann univentionstaff 2009-12-21 08:48:14 CET
UCS 2.3 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte der Bug dupliziert werden: "Clone This Bug".