Author: fehr Date: Tue Jan 18 15:25:43 2011 New Revision: 63200 URL: http://svn.opensuse.org/viewcvs/yast?rev=63200&view=rev Log: add version check Modified: trunk/storage/storage/src/modules/StorageUpdate.ycp Modified: trunk/storage/storage/src/modules/StorageUpdate.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/StorageUpdate.ycp?rev=63200&r1=63199&r2=63200&view=diff ============================================================================== --- trunk/storage/storage/src/modules/StorageUpdate.ycp (original) +++ trunk/storage/storage/src/modules/StorageUpdate.ycp Tue Jan 18 15:25:43 2011 @@ -86,10 +86,10 @@ } -global define void UpdateFstabOptions() +global define void UpdateFstabHotplugOption() { - y2milestone( "UpdateFstabOptions" ); - string tabpath = PathToDestdir( "/etc/fstab" ); + y2milestone( "UpdateFstabHotplugOption" ); + string tabpath = Storage::PathToDestdir( "/etc/fstab" ); map fstab = Partitions::GetFstab( tabpath ); integer line = 0; string n = ""; @@ -386,7 +386,10 @@ UpdateFstabPersistentNames(); } - UpdateFstabOptions(); + if( oldv["major"]:0<=10 ) + { + UpdateFstabHotplugOption(); + } // remove EVMS // FIXME add appropriate condition if needed (does not seem so) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org