Add README.cifstab.migration to document the cifstab removal.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/cifs-utils?expand=0&rev=118
This commit is contained in:
Lars Müller 2014-10-28 11:13:02 +00:00 committed by Git OBS Bridge
parent 75291ef7d1
commit f1efc8a327
3 changed files with 30 additions and 0 deletions

22
README.cifstab.migration Normal file
View File

@ -0,0 +1,22 @@
openSUSE pre-13.1 and SUSE Linux Enterprise pre-12 cifstab migration
====================================================================
The /etc/samba/cifstab approach to handle mounting of cifs shares at systems
startup got discontinued and obsoleted by the generic /etc/fstab approach.
The migration process requires two steps:
1. Append all your mount points from /etc/samba/cifstab.rpmsave to /etc/fstab
2. Add "0 0" to the end of each new cifs mount line in /etc/fstab
Example:
An existing configuration used in /etc/samba/cifstab:
//DATA01/someshare /media/DATA01/someshare cifs credentials=/etc/samba/mycredentials,uid=1000,gid=100,file_mode=0644,dir_mode=0755,domain=MYDOMAIN,rw,setuids
results in the following line in /etc/fstab:
//DATA01/someshare /media/DATA01/someshare cifs credentials=/etc/samba/mycredentials,uid=1000,gid=100,file_mode=0644,dir_mode=0755,domain=MYDOMAIN,rw,setuids 0 0

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 28 10:47:47 UTC 2014 - lmuelle@suse.com
- Add README.cifstab.migration to document the cifstab removal.
-------------------------------------------------------------------
Mon Oct 13 22:01:06 UTC 2014 - lmuelle@suse.com

View File

@ -26,6 +26,7 @@ Url: http://www.samba.org/linux-cifs/cifs-utils/
Source: ftp://ftp.samba.org/pub/linux-cifs/%{name}/%{name}-%{version}.tar.bz2
Source5: ftp://ftp.samba.org/pub/linux-cifs/%{name}/%{name}-%{version}.tar.bz2.asc
Source6: ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-pubkey_70F3B981.asc
Source100: README.cifstab.migration
%if "%{_vendor}" == "suse"
%define NET_CFGDIR network
%else
@ -113,6 +114,7 @@ provide these credentials to the kernel automatically at login.
%prep
%{?gpg_verify: %gpg_verify --keyring %{SOURCE6} %{SOURCE5}}
%setup -q
cp -a ${RPM_SOURCE_DIR}/README.cifstab.migration .
%build
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fpie"
@ -184,6 +186,7 @@ touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-{down,up}.d/${
%dir %{_sysconfdir}/samba
%ghost %{_rundir}/cifs
%endif
%doc README.cifstab.migration
%files devel
%defattr(-,root,root)