Author: aschnell
Date: Thu Aug 28 21:31:27 2008
New Revision: 50465
URL: http://svn.opensuse.org/viewcvs/yast?rev=50465&view=rev
Log:
- removed obsolete code
Modified:
trunk/storage/storage/src/modules/Storage.ycp
Modified: trunk/storage/storage/src/modules/Storage.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/Storage.ycp?rev=50465&r1=50464&r2=50465&view=diff
==============================================================================
--- trunk/storage/storage/src/modules/Storage.ycp (original)
+++ trunk/storage/storage/src/modules/Storage.ycp Thu Aug 28 21:31:27 2008
@@ -4893,66 +4893,6 @@
return( pt );
}
-//-----------------------------------------------------
-//
-// change an entry in /etc/fstab
-//
-global define void ChangeLineFstab( map entry )
- ``{
- string tabpath = PathToDestdir( "/etc/fstab" );
- if( Installation::scr_destdir != "/" )
- {
- if( SCR::Read( .target.size, tabpath )>= 0 )
- SCR::Execute( .target.remove, tabpath );
- }
- map fstab = Partitions::GetFstab( tabpath );
- list lines = Storage::FindFstabLines( fstab, entry["mount"]:"",
- entry["spec"]:"", "x", "x" );
- list fstlist = [ entry["spec"]:"", entry["mount"]:"",
- entry["vfstype"]:"", entry["mntops"]:"",
- sformat("%1",entry["freq"]:0),
- sformat("%1",entry["passno"]:0) ];
- y2milestone( "lines %1", lines );
- if( size(lines)==0 )
- {
- AsciiFile::AppendLine( fstab, fstlist );
- }
- else
- {
- integer field = 0;
- while( field<4 )
- {
- AsciiFile::ChangeLineField( fstab, lines[0]:-1, field,
- fstlist[field]:"" );
- field = field+1;
- }
- }
- string dir = entry["mount"]:"";
- if( substring( dir, 0, 1 )== "/" )
- {
- dir = PathToDestdir( dir );
- if( SCR::Read( .target.size, dir )<=0 )
- {
- SCR::Execute( .target.mkdir, dir );
- }
- }
- AsciiFile::RewriteFile( fstab, tabpath );
- };
-
-global define map MakeCdromFstabEntry( map cd )
- ``{
- map entry = FileSystems::GetFstabDefaultMap( "cdrom" );
- string cdmount = cd["linkname"]:"";
- entry["spec"] = cdmount;
- entry["mount"] = "/media/"+substring(cdmount,5);
- string enc = FileSystems::LangTypicalEncoding();
- if( !contains( [ "iso8859-1", "iso8859-15", "" ], enc ))
- {
- entry["mntops"] = entry["mntops"]:"" + ",iocharset=" + enc;
- }
- y2milestone( "ret %1", entry );
- return( entry );
- };
define void HandleModulesOnBoot( map AutodetectMultipathRaid( map
ret = [];
- map