Bug 42530 - installation selects floppy (/dev/fd0) as disk to partition
installation selects floppy (/dev/fd0) as disk to partition
Status: CLOSED FIXED
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: initrd
UCC 3.0
Other Linux
: P5 minor
: UCC 3.0-errata
Assigned To: Erik Damrose
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-29 09:57 CEST by Moritz Bunkus
Modified: 2016-10-17 14:22 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.206
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 Bunkus 2016-09-29 09:57:45 CEST
I'm currently trying to install the UCC 3.0 desktop image on a virtual machine (VMware). The VM boots via network and loads the initrd just fine. However, the initrd choses /dev/fd0 as the device to partition.

Unpacking the initrd and looking at scripts/ucc I don't see any provision for skipping floppy devices or removable devices (there's one "if" dealing with removables, but that is only entered if "$device_blacklist" is set, which "grep -r device_blacklist /path/to/extracted/initrd" never to be the case).

Looking at the output of "cat /proc/partitions" in a debug shell started from the UCC initrd I can see:

1. A lot of ram disk partitions
2. The fd0 partition
3. The sda partition

This happens even if I remove the floppy device from the virtual machine configuration.

Of course this is an edge case (installing the desktop in a virtual machine). However, I'm pretty sure that a floppy device can never the right target.

I've circumvented this by adding the following lines to the "search_device" function and rebuilding the initrd:

		if echo "${device}" | grep -sq ^"fd[0-9]" ; then
			# Skipping floppy devices
			continue
		fi

This is just copy-pasted and adjusted from the device mapper case.
Comment 1 Erik Damrose univentionstaff 2016-10-07 15:10:05 CEST
Thanks for the report. I fixed the issue in

r73007 univention-ucc-initramfs 5.0.0-26.164.201610071507
r73008 yaml
Comment 2 Felix Botner univentionstaff 2016-10-10 15:48:26 CEST
OK - fd[0-9] is ignored in search_device (initramfs-tools/scripts/ucc)
OK - yaml
Comment 3 Janek Walkenhorst univentionstaff 2016-10-17 14:22:33 CEST
<https://errata.software-univention.de/ucc/3.0/4.html>