Bug 368207

Summary: Missing usb stick option when adding Add-on product during installation
Product: [openSUSE] openSUSE 11.0 Reporter: Ladislav Michnovic <lmichnovic>
Component: YaST2Assignee: Lukas Ocilka <locilka>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: ke, lslezak
Version: Alpha 2plus   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ladislav Michnovic 2008-03-07 15:07:05 UTC
Regarding FATE #302382, I don't see the USB mass storage in the options when I want to add an Add-on product during installation. 

Btw. How can I add an ISO file as Add-on? It's possible via NFS, but not when I have it on the local hard drive.
Comment 1 Ladislav Slezák 2008-03-07 15:23:32 UTC
Uh, I just have found that the add-on module has its own media selection code, it should reuse the code from SourceDialogs.ycp (e.g. IsAnyNetworkAvailable(), SelectRadioWidgetOpt), unfortunately the SourceDialogs API must be fixed (it's not public).

To the local ISO file: that's another feature request :-)
(The UI doesn't support this in a simple way, but you can use an URL like this as a workaround:
iso:///?iso=openSUSE-10.2-RC5-DVD-ppc.iso&url=hd:///openSUSE-10.2-RC5/iso/?device=/dev/sdb8&filesystem=auto)
Comment 2 Ladislav Michnovic 2008-03-07 15:38:34 UTC
(In reply to comment #1 from Ladislav Slezak)
> To the local ISO file: that's another feature request :-)
Well if you use the same code which is used in yast2 inst_source module, it will be fixed also. There is already an ISO file option. ;-)
Comment 3 Lukas Ocilka 2008-04-01 15:16:08 UTC
Er, hmm, I thought we were reusing the same code :)
Comment 4 Ladislav Michnovic 2008-04-18 09:36:17 UTC
Ping. This issue is still in Beta1. :(
Comment 9 Lukas Ocilka 2008-05-12 13:55:21 UTC
Packages and Add-Ons are not using the same code because Packager has the code inside repositories.ycp (which cannot be used from outside), one possibility would be to move these functions to module or include file.

At least: TypeDialog, EditDialog, StoreSource + createSource function(s)
Comment 10 Lukas Ocilka 2008-05-15 14:07:24 UTC
- Some functions from repositories.ycp were moved to a separate
  include file to share them (bnc #368207).
- yast2-packager-2.16.47
Comment 11 Lukas Ocilka 2008-05-15 14:28:54 UTC
- Using functions for adding repositories exported by the
  yast2-packager to unify the offered types of repositories
  (bnc #368207).
- yast2-add-on-2.16.5