Bug 276799

Summary: YaST reports "Unknown source type of dvd:///"
Product: [openSUSE] openSUSE 10.2 Reporter: Bryce Nesbitt <bryce2>
Component: YaST2Assignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: openSUSE 10.3   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Clean y2log, showing a failed atempt to add a dvd source.

Description Bryce Nesbitt 2007-05-21 22:47:55 UTC
Do this:

1. Click on YaST, "Installation Source".
2. Wait
3. Click on "Add", "DVD", "NEXT".  You are now asked what drive to eject, instead select the drive that has a SUSE DVD.
4. Observe error message. "Unable to create installation source from URL 'dvd:///' Details: Unknown source type for dvd:/// Try Again {YES/NO}.
5. Get frustrated, swear, report bug.  Be frustrated.

It appears that in order to set a installation source of DVD, one must select CD in place of DVD above.
Comment 1 Cyril Hrubis 2007-05-25 13:49:13 UTC
Please attach y2logs. If you are in doubt follow:

http://en.opensuse.org/Bugs/YaST

Thanks!
Comment 2 Bryce Nesbitt 2007-05-25 16:18:44 UTC
Yuck.  Y2 is so slow to run.  Do you really need the logs.
Comment 3 Bryce Nesbitt 2007-05-25 16:25:47 UTC
Created attachment 142356 [details]
Clean y2log, showing a failed atempt to add a dvd source.
Comment 4 Ladislav Slezák 2007-06-01 14:40:05 UTC
The system has 2 drivers:

2007-05-25 09:21:59 <0> hardhat(12525) [media] MediaCD.cc(detectDevices):340 Found 2 cdrom drive udis                          
2007-05-25 09:21:59 <0> hardhat(12525) [media] MediaCD.cc(detectDevices):370 Found /org/freedesktop/Hal/devices/storage_model_SONY_CD_RW_CRX140E: cdrom</dev/hdd[22,64]>                                                                                      
2007-05-25 09:21:59 <0> hardhat(12525) [media] MediaCD.cc(detectDevices):370 Found /org/freedesktop/Hal/devices/storage_model_LITE_ON_DVDRW_SOHW_1693S: cdrom</dev/hdc[22,0]>

But only /dev/hdd is probed, /dev/hdc is ignored:

2007-05-25 09:21:59 <0> hardhat(12525) [media] MediaHandler.cc(checkAttached):543 Found media device cdrom</dev/hdd[22,64]> in 
the mount table as /dev/hdd                                                                                                    
2007-05-25 09:21:59 <1> hardhat(12525) [media] MediaHandler.cc(attach):651 Attached: dvd:/// attached; localRoot "/media/PERSON
AL_FILES__ILIL_"

Libzypp should try to use the other drive if the drive was not explicitly set.

And when all drives fail then it should report a failure and yast will ask to eject a medium...
Comment 5 Jan Kupec 2007-06-01 14:57:07 UTC
Yes, in 10.2 libzypp checks only the first drive with a mountable media. If it doesn't find installation source on it, it will report a failure. You will probably not get the error if you put the installation DVD into the second drive (if it is a DVD drive).

This problem is fixed since openSUSE 10.3 Alpha 3 plus