Author: fehr Date: Tue Jan 18 15:02:09 2011 New Revision: 63199 URL: http://svn.opensuse.org/viewcvs/yast?rev=63199&view=rev Log: adaptations for unattended migration Modified: trunk/storage/package/yast2-storage.changes trunk/storage/storage/src/modules/StorageUpdate.ycp Modified: trunk/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.cha... ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Tue Jan 18 15:02:09 2011 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Tue Jan 18 14:49:17 CET 2011 - jsrain@suse.cz + +- adaptations for unattended migration + +------------------------------------------------------------------- Mon Jan 17 17:28:51 CET 2011 - fehr@suse.de - allow floating point value in reserved block percentage and Modified: trunk/storage/storage/src/modules/StorageUpdate.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/Stora... ============================================================================== --- trunk/storage/storage/src/modules/StorageUpdate.ycp (original) +++ trunk/storage/storage/src/modules/StorageUpdate.ycp Tue Jan 18 15:02:09 2011 @@ -86,6 +86,27 @@ } +global define void UpdateFstabOptions() + { + y2milestone( "UpdateFstabOptions" ); + string tabpath = PathToDestdir( "/etc/fstab" ); + map fstab = Partitions::GetFstab( tabpath ); + integer line = 0; + string n = ""; + while( line<=AsciiFile::NumLines( fstab ) ) + { + map l = AsciiFile::GetLine( fstab, line ); + string options = l["fields", 3]:""; + if (regexpmatch (options, "^(.*,)?hotplug(,.*)?$")) { + options = regexpsub (options, "^(.*,)?hotplug(,.*)?$", "\1nofail\2"); + AsciiFile::ChangeLineField( fstab, line, 3, options ); + } + line = line+1; + } + AsciiFile::RewriteFile( fstab, tabpath ); + } + + void UpdateFstabPersistentNames() { y2milestone( "UpdateFstabPersistentDevNames updating to SLES10 names" ); @@ -365,6 +386,8 @@ UpdateFstabPersistentNames(); } + UpdateFstabOptions(); + // remove EVMS // FIXME add appropriate condition if needed (does not seem so) UpdateFstabEvms2Lvm(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org