Bug 24564 - Angabe von profile_file funktioniert nicht (mit floppy); erwartet F12 zur Bestätigung
Angabe von profile_file funktioniert nicht (mit floppy); erwartet F12 zur Bes...
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UCS Installer
UCS 3.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Installer maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-12 03:59 CET by Philipp Hahn
Modified: 2017-08-08 07:07 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
Fix floppy profile (20.26 KB, patch)
2012-11-05 20:12 CET, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2011-11-12 03:59:45 CET
Eine VM soll automatisch installiert werden. Dazu wurde ein Floppy-Image mit der Profildatei "auto" erstellt und als Floppy-Image eingebunden. Das Profil wird auch angezeigt, aber es muß per F12 bestätigt werden.

aptitude install dosfstools
dd if=/dev/zero of=FAT12.img bs=1K count=1440
mkdosfs -F 12 FAT12.img
mount -o loop FAT12.img /mnt
cp auto /mnt
umount /mnt
kvm -enable-kvm -sdl -m 1024 -boot d \
 -cdrom grub2.iso -hda test.qcow2 -fda FAT12.img \
 -kernel iso/boot/linux-2.6.32 -initrd linux-2.6.32.ext2 \
 -append "root=/dev/ram ro ramdisk_size=209272 flavor=linux nomodeset quiet loglevel=0 vga=788 text profile=auto profile_file=auto floppy"

Scheinbar ist die Floppy zum Zeitpunkt der Überprüfung (installer/modules/15_profile.py:115) noch nicht gemountet:

/tmp/installer.log:
...
==> profile_complete
==> run_profiled
(main)check depends return 0 for rofile
check profile 04_profile
profile mode from 04_profile ←←←←←
(main) incomplete: 2
(main) leftment
Mount /profmnmt: "0" ←←←←←
(main) waiting 2

PS: Die profile-Angaben auf der Kommandozeile sind sehr tückisch: "profile" überschrebt "usb", "floppy" und "profile_file", so daß "usb" und "floppy" unbedingt danach angegeben werden müssen. Außerdem wird bei fehlender direkter Angabe der Profildatei bei "profile=" ein Modus aktiviert, der das nächste unregistrierte Argument als Profilname verwendet, egal wie viele bekannte andere Schlüsselworte dazwischen stehen.
Comment 1 Philipp Hahn univentionstaff 2012-11-05 20:12:37 CET
Created attachment 4771 [details]
Fix floppy profile

Ursache sind mehrere Probleme:

univention-installer/installer/modules/15_profile.py:114
-				self.sub.draw()
+			self.sub.draw()
Ansonsten werden die Profile nur für medium=cdrom gemountet, nicht aber für usb oder floppy.

...
-				if passwd:
...
-				if self.ignore('profile_file'):
-					return True
-				return False
Sofern kein Passwort verwendet wird, wird die Funktion immer mit False beendet, weshalb ein auf der Kommandozeile übergebenes Profil immer als unvollständig bewertet wird.

univention-installer/installer/modules/65_partition.py:714
+			disks, problemdisks = self.read_devices()
+			self.container['disk'] = disks
+			self.container['problemdisk'] = problemdisks
Ist die Festplatte initial nicht partitioniert, kann diese zwar per "create_partition=/dev/sda" partitioniert werden, aber anschließend fehlt die Festplatte in 'disk's und verbleibt in weiterhin 'problemdisk's, weshalb auto_part sie nicht findet und verwendet.


Der Rest entfernt ungenutze Funktionen und vereinfacht andere.
Erfolgreich getestet mit vielen vollautomatischen KVM-Installationen, beschrieben an Bug #26772.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2012-11-06 11:52:50 CET
(In reply to comment #1)
> univention-installer/installer/modules/65_partition.py:714
> +            disks, problemdisks = self.read_devices()
> +            self.container['disk'] = disks
> +            self.container['problemdisk'] = problemdisks
> Ist die Festplatte initial nicht partitioniert, kann diese zwar per
> "create_partition=/dev/sda" partitioniert werden, aber anschließend fehlt die
> Festplatte in 'disk's und verbleibt in weiterhin 'problemdisk's, weshalb
> auto_part sie nicht findet und verwendet.

Dies ist bereits im Rahmen von Bug 28263 gefixt worden.
Comment 3 Stefan Gohmann univentionstaff 2017-06-16 20:35:57 CEST
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4.

If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
Comment 4 Stefan Gohmann univentionstaff 2017-08-08 07:07:16 CEST
This issue has been filed against UCS 3.0.

UCS 3.0 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.