Mailinglist Archive: yast-commit (953 mails)
| < Previous | Next > |
[yast-commit] r50467 - /trunk/storage/storage/src/modules/Storage.ycp
- From: aschnell@xxxxxxxxxxxxxxxx
- Date: Fri, 29 Aug 2008 08:38:33 -0000
- Message-id: <20080829083833.D55622D4A7@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Fri Aug 29 10:38:32 2008
New Revision: 50467
URL: http://svn.opensuse.org/viewcvs/yast?rev=50467&view=rev
Log:
- removed evms 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=50467&r1=50466&r2=50467&view=diff
==============================================================================
--- trunk/storage/storage/src/modules/Storage.ycp (original)
+++ trunk/storage/storage/src/modules/Storage.ycp Fri Aug 29 10:38:32 2008
@@ -4825,33 +4825,6 @@
y2milestone( "return" );
}
-void UpdateBootFstabEvms()
- {
- string tabpath = PathToDestdir( "/etc/fstab" );
- y2milestone( "UpdateBootFstabEvms %1",
- SCR::Execute( .target.bash_output, "grep /boot " + tabpath ));
- map fstab = Partitions::GetFstab( tabpath );
- list lines = AsciiFile::FindLineField( fstab, 1, Partitions::BootMount() );
- y2milestone( "UpdateBootFstabEvms lines %1", lines );
- map l = AsciiFile::GetLine( fstab, lines[0]:-1 );
- if( search( l["fields",0]:"", "/dev/evms" )!=0 )
- {
- map<string,map> tg = filter( string k, map e, GetTargetMap(),
- ``(IsRealDisk( e )) );
- map p = GetPartition( tg, l["fields",0]:"" );
- y2milestone( "UpdateBootFstabEvms p %1", p );
- if( size(p)>0 )
- {
- AsciiFile::ChangeLineField( fstab, lines[0]:-1, 0,
-
"/dev/evms/"+substring(p["device"]:"",5));
- AsciiFile::RewriteFile( fstab, tabpath );
- }
- }
- y2milestone( "UpdateBootFstabEvms %1",
- SCR::Execute( .target.bash_output, "grep /boot " + tabpath ));
- }
-
-global define boolean BootEvms();
/**
* Writes fstab to the disk
@@ -4880,8 +4853,6 @@
Storage::AddFstabEntry( m );
num = num+1;
});
- if( BootEvms() )
- UpdateBootFstabEvms();
HandleModulesOnBoot( GetTargetMap() );
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
Date: Fri Aug 29 10:38:32 2008
New Revision: 50467
URL: http://svn.opensuse.org/viewcvs/yast?rev=50467&view=rev
Log:
- removed evms 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=50467&r1=50466&r2=50467&view=diff
==============================================================================
--- trunk/storage/storage/src/modules/Storage.ycp (original)
+++ trunk/storage/storage/src/modules/Storage.ycp Fri Aug 29 10:38:32 2008
@@ -4825,33 +4825,6 @@
y2milestone( "return" );
}
-void UpdateBootFstabEvms()
- {
- string tabpath = PathToDestdir( "/etc/fstab" );
- y2milestone( "UpdateBootFstabEvms %1",
- SCR::Execute( .target.bash_output, "grep /boot " + tabpath ));
- map fstab = Partitions::GetFstab( tabpath );
- list lines = AsciiFile::FindLineField( fstab, 1, Partitions::BootMount() );
- y2milestone( "UpdateBootFstabEvms lines %1", lines );
- map l = AsciiFile::GetLine( fstab, lines[0]:-1 );
- if( search( l["fields",0]:"", "/dev/evms" )!=0 )
- {
- map<string,map> tg = filter( string k, map e, GetTargetMap(),
- ``(IsRealDisk( e )) );
- map p = GetPartition( tg, l["fields",0]:"" );
- y2milestone( "UpdateBootFstabEvms p %1", p );
- if( size(p)>0 )
- {
- AsciiFile::ChangeLineField( fstab, lines[0]:-1, 0,
-
"/dev/evms/"+substring(p["device"]:"",5));
- AsciiFile::RewriteFile( fstab, tabpath );
- }
- }
- y2milestone( "UpdateBootFstabEvms %1",
- SCR::Execute( .target.bash_output, "grep /boot " + tabpath ));
- }
-
-global define boolean BootEvms();
/**
* Writes fstab to the disk
@@ -4880,8 +4853,6 @@
Storage::AddFstabEntry( m );
num = num+1;
});
- if( BootEvms() )
- UpdateBootFstabEvms();
HandleModulesOnBoot( GetTargetMap() );
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |