[yast-commit] r66969 - in /branches/SuSE-Code-11-SP2-Branch/autoinstallation: VERSION package/autoyast2.changes src/modules/AutoinstStorage.ycp
![](https://seccdn.libravatar.org/avatar/c9070b5f76f6da59ddd19152f5a40913.jpg?s=120&d=mm&r=g)
Author: ug Date: Tue Nov 29 14:06:05 2011 New Revision: 66969 URL: http://svn.opensuse.org/viewcvs/yast?rev=66969&view=rev Log: using libstorage now for name resolving of by-id, by-path ... Modified: branches/SuSE-Code-11-SP2-Branch/autoinstallation/VERSION branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/modules/AutoinstStorage.ycp Modified: branches/SuSE-Code-11-SP2-Branch/autoinstallation/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/autoinstallation/VERSION?rev=66969&r1=66968&r2=66969&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/autoinstallation/VERSION (original) +++ branches/SuSE-Code-11-SP2-Branch/autoinstallation/VERSION Tue Nov 29 14:06:05 2011 @@ -1 +1 @@ -2.17.53 +2.17.54 Modified: branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes?rev=66969&r1=66968&r2=66969&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes Tue Nov 29 14:06:05 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Nov 29 13:50:32 CET 2011 - ug@suse.de + +- resolving names for by-path, by-id, .... is done by + libstorage now (bnc#726319) + +------------------------------------------------------------------- Mon Oct 10 11:18:02 CEST 2011 - ug@suse.de - cloning of LVM did not clone the VG name for a physical Modified: branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/modules/AutoinstStorage.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/modules/AutoinstStorage.ycp?rev=66969&r1=66968&r2=66969&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/modules/AutoinstStorage.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/modules/AutoinstStorage.ycp Tue Nov 29 14:06:05 2011 @@ -336,29 +336,12 @@ d["device"] = find_first_disk(last_dev); y2milestone("empty device in profile set to %1", d["device"]:""); } - else if( issubstring( device, "by-id" ) ) - udev_string = "udev_id"; - else if( issubstring( device, "by-path" ) ) - udev_string = "udev_path"; - if( udev_string != "" ) { - integer index = findlastof( device, "/" ); - string wanted_udev = substring( device, index+1 ); - foreach( string deviceName, map tmp_target, tm, ``{ - y2milestone("searching for %1 on %2", wanted_udev, deviceName ); - list<string> liste = []; - if( udev_string == "udev_id" ) - liste = tmp_target[udev_string]:[]; - else - liste = [ tmp_target[udev_string]:"" ]; - foreach( string found_udev, liste, ``{ - if( found_udev == wanted_udev ) { - d["device"] = deviceName; - y2milestone("found mapping of %1 to %2",found_udev, deviceName); - break; - } - }); - }); - } + // translation of by-id, by-path, ... device names. + // was handled in autoyast until openSUSE 11.3 + map<string,any> deviceTranslation = $[]; + if( Storage::GetContVolInfo( d["device"]:"", deviceTranslation ) ) + d["device"] = deviceTranslation["cdevice"]:""; + last_dev = d["device"]:""; return d; }); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
ug@svn2.opensuse.org