Bug 220921

Summary: Cannot setup SMB/CIFS install source
Product: [openSUSE] openSUSE 10.2 Reporter: Raphael Posmyk <duzy.trzmiel>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P5 - None CC: aj
Version: Beta 2   
Target Milestone: ---   
Hardware: 32bit   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: yast install log and screenshot from adding install source

Description Raphael Posmyk 2006-11-14 19:03:23 UTC
Sorry for my broken english, i'm not nativ en speeker :-|

Because of problems with CD/DVD-ROM detection (see bug 205331),
i've choosed instalation via SMB. The first installation phase
was ok, but after reboot yast said, it cannot mount install source
(see attached yastlog). I could finish the installation nevertheless.

But now i cannot add an instalation source to yast ! I can connect
to the smb share from konqueror (see attached picture) so i assume
it's not a network issue. If i copy all files from snb share to
local folder, i can add the folder as local install source.
Comment 1 Raphael Posmyk 2006-11-14 19:06:07 UTC
Created attachment 105243 [details]
yast install log and screenshot from adding install source
Comment 2 Michael Andres 2006-11-15 23:13:36 UTC
The log says:

Executing '/bin/mount' '-t' 'cifs' 
          '-o' 'credentials=/var/tmp/TmpFile.vs7mFh,guest,ro' 
          '//192.168.140.10/SuSE102' '/var/adm/mount/AP_0x00000001'
pid 4370 launched
stdout: mount: wrong fs type, bad option, bad superblock on           
               //192.168.140.10/SuSE102,
stdout:        missing codepage or other error
stdout:        In some cases useful info is found in syslog - try
stdout:        dmesg | tail  or so
stdout: 
pid 4370 exited with status 32

@Lars: any idea what might be wrong here?
Comment 3 Raphael Posmyk 2006-11-16 21:27:35 UTC
I can now define SMB/CIFS install sources in yast. The solution
was to install "samba" and "smb-client" packages (probably because
of "smbmount"). But was is with mounting during installation ?
Is smbmount at time also not available ?
Comment 4 Michael Andres 2006-11-16 23:06:14 UTC
Obviously smbmount is available in the installation environment, but not after booting. 

@Stano/Jiri: The behaviour is not smart. We should find a way to make shure that packages required to access the installation source are available after boot.
Comment 5 Andreas Jaeger 2006-11-17 06:42:29 UTC
So, is the problem that samba and smb-client is not installed by default?

I can add it to the default pattern if required - but I would suggest that YaST selectes them if needed.
Comment 6 Raphael Posmyk 2006-11-17 07:37:44 UTC
Would't be not better to disable (grayout)  the SMB/CIFS radiobox in yast (add inst.  source), if smb-client is not installed ?
Comment 7 Jiri Srain 2006-11-20 09:20:43 UTC
Lado, I think you can install these packages the same way as eg. network daemons are installed if they are missing and user selects an SMB source. It will help users much more than just graying the radio button out.
Comment 8 Jiri Srain 2006-11-20 09:22:21 UTC
OTOH, it doesn't solve the problem reported here: If user installs via SMB and doesn't select relevant packages, he won't be able to install more. Thus, it might make sense to add at least a soft dependency libzypp -> samba/smb-client. Andreas, what do you think?
Comment 9 Ladislav Slezák 2006-11-20 12:41:13 UTC
I think the installer should select the samba packages (or at least cifs-mount package which contains /sbin/mount.cifs) if the installation source is SMB.

(In a running system we should use the solution from comment #7.)
Comment 10 Andreas Jaeger 2006-11-20 15:10:14 UTC
Let's install them if this is an easy change.

If not, assign the bug to me and I add them to the default install via patterns.
Comment 11 Ladislav Slezák 2006-11-20 16:14:39 UTC
Fixed in yast2-packager-2.14.7

installation: if the installation source is a SMB/CIFS share 'cifs-mount' is selected for installation

run-time: if the new source is a SMB/CIFS share 'cifs-mount' package is installed just before creating the source (if /sbin/mount.cifs is missing)