Bug 21757 - Profilbasierte Installation bindet USB-Stick nicht ein
Profilbasierte Installation bindet USB-Stick nicht ein
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCS Installer
UCS 2.4
Other Linux
: P5 normal (vote)
: UCS 2.4-2
Assigned To: Felix Botner
Jascha Geerds
:
Depends on:
Blocks: 23016
  Show dependency treegraph
 
Reported: 2011-03-08 15:19 CET by Janis Meybohm
Modified: 2011-07-13 11:57 CEST (History)
1 user (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
installer.log der alten DVD (10.40 KB, text/plain)
2011-03-08 15:19 CET, Janis Meybohm
Details
installer.log der neuen DVD (10.61 KB, text/plain)
2011-03-08 15:20 CET, Janis Meybohm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2011-03-08 15:19:59 CET
Created attachment 3096 [details]
installer.log der alten DVD

2011030710001049

Mit der alten und neuen 2.4 DVD (Kernel 2.6.32) getestet.
Alte DVD (RAID-Controller wird nicht erkannt, daher sda):
# /lib/univention-installer/usb-device.sh 2.6
0 BUFFALO  0 sda1
1 BUFFALO  0 sda
2 TOSHIBA  5 sr0

installer.log:
could not translate string: "Initialize USB Devices"

could not translate string: "Please wait..."

could not translate string: "Please wait..."

mount /profmnt/0
/bin/mount /dev/0 /profmnt/0 -t vfat >/dev/null 2>&1
/bin/mount /dev/0 /profmnt/0 >/dev/null 2>&1
mount /profmnt/01
/bin/mount /dev/01 /profmnt/01 -t vfat >/dev/null 2>&1
/bin/mount /dev/01 /profmnt/01 >/dev/null 2>&1
mount /profmnt/0
/bin/mount /dev/0 /profmnt/0 -t vfat >/dev/null 2>&1
/bin/mount /dev/0 /profmnt/0 >/dev/null 2>&1
mount /profmnt/01
/bin/mount /dev/01 /profmnt/01 -t vfat >/dev/null 2>&1
/bin/mount /dev/01 /profmnt/01 >/dev/null 2>&1
mount /profmnt/5
/bin/mount /dev/5 /profmnt/5 -t vfat >/dev/null 2>&1
/bin/mount /dev/5 /profmnt/5 >/dev/null 2>&1
mount /profmnt/51
/bin/mount /dev/51 /profmnt/51 -t vfat >/dev/null 2>&1
/bin/mount /dev/51 /profmnt/51 >/dev/null 2>&1
could not translate string: "F12-Next"


Neue DVD:
# /lib/univention-installer/usb-device.sh 2.6
0 BUFFALO  0 sdb1
1 BUFFALO  0 sdb
2 TOSHIBA  5 sr0

installer.log:
could not translate string: "Initialize USB Devices"

could not translate string: "Please wait..."

could not translate string: "Please wait..."

mount /profmnt/0
/bin/mount /dev/0 /profmnt/0 -t vfat >/dev/null 2>&1
/bin/mount /dev/0 /profmnt/0 >/dev/null 2>&1
mount /profmnt/01
/bin/mount /dev/01 /profmnt/01 -t vfat >/dev/null 2>&1
/bin/mount /dev/01 /profmnt/01 >/dev/null 2>&1
mount /profmnt/0
/bin/mount /dev/0 /profmnt/0 -t vfat >/dev/null 2>&1
/bin/mount /dev/0 /profmnt/0 >/dev/null 2>&1
mount /profmnt/01
/bin/mount /dev/01 /profmnt/01 -t vfat >/dev/null 2>&1
/bin/mount /dev/01 /profmnt/01 >/dev/null 2>&1
mount /profmnt/5
/bin/mount /dev/5 /profmnt/5 -t vfat >/dev/null 2>&1
/bin/mount /dev/5 /profmnt/5 >/dev/null 2>&1
mount /profmnt/51
/bin/mount /dev/51 /profmnt/51 -t vfat >/dev/null 2>&1
/bin/mount /dev/51 /profmnt/51 >/dev/null 2>&1
Comment 1 Janis Meybohm univentionstaff 2011-03-08 15:20:23 CET
Created attachment 3097 [details]
installer.log der neuen DVD
Comment 2 Felix Botner univentionstaff 2011-03-14 12:40:30 CET
Vermutlich ist es eine Problem bei der Ausgabe der gefundenen USB Geräte. Hier hat sich ein Leerzeichen zwischen Element 1 und 2 eingeschlichen. Dadurch kommt der Installer durcheinander (.split(" ")) und versucht ein falsches Verzeichnis einzubinden.

In installer/usb-device.sh wird nun bei der Ausgabe der vier Werte immer ein "sed -e 's| *$||' -e 's| |_|g'" durchgeführt. Dadurch sollte alle ungewollten Leerzeichen in der Ausgabe verschwinden.

Hotfix:

Diese Anpassung wurde im Scope univention-installer für UCS 2.4 am Paket univention-installer per Patch eingepflegt. Zusätzlich gibt es eine neue Installations CD auf Basis der 2.4 CD (mit sec1 und sec2, Script build-cd-ucs2.4-0-installer). Damit habe ich eine profilbasierte USB Installation und eine normale Installation auf Hardware getestet (i386). 

@Janis:
Diese CD's können dann (nach der QA?) weitergegeben werden
ucs_2.4-0-installer-latest-amd64.iso
ucs_2.4-0-installer-latest-i386.iso

2.4-2:

Das Problem wurde auch im Trunk behoben. Hier gab es aber noch zusätzliche Probleme. Die OXAE Änderungen am Installer haben die profilbasierte Installation kaputt gemacht. Es gibt also zusätzlich zur Änderung oben noch zwei kleine Anpassungen an 11_basis.py.

Eine (interne) Install CD für 2.4-2 wurde gebaut. Damit sollte die QA der Installation möglich sein. Für die QA würde ich vorschlagen, zumindest ein Test mit profilbasierter Installation (USB) und einen mit normaler Installation auf echter Hardware.
Comment 3 Jascha Geerds univentionstaff 2011-03-17 12:31:25 CET
Ich habe folgende CD's getestet:

ucs_2.4-0-installer-latest-amd64.iso
ucs_2.4-0-installer-latest-i386.iso


Bei beiden funktionierte die profilbasierte Installation per USB-Stick problemlos.


Es fehlt jedoch der Changelog. Reopened
Comment 4 Felix Botner univentionstaff 2011-03-18 11:42:47 CET
Changelog Eintrag ergänzt.
Comment 5 Jascha Geerds univentionstaff 2011-03-25 15:01:50 CET
Changelog wurde ergänzt. Verified!
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2011-04-04 15:47:32 CEST
UCS 2.4-2 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".