home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / share / YaST2 / include / packager / storage_include.ycp < prev   
Text File  |  2006-11-29  |  825b  |  29 lines

  1. /**
  2.  * File:    include/packager/storage_include.ycp
  3.  * Module:    Packager
  4.  * Summary:    Storage calls
  5.  * Authors:    Lukas Ocilka <locilka@suse.cz>
  6.  *
  7.  */
  8. {
  9.     textdomain "installation";
  10.  
  11.     import "Storage";
  12.     import "SourceManager";
  13.     
  14.     /**
  15.      * Function releases the the device when EVMS is used and the install
  16.      * source is disk. See bugzilla 208222 for more details.
  17.      */
  18.     void ReleaseHDDUsedAsInstallationSource () {
  19.     string install_src_partition = SourceManager::InstallationSourceOnPartition();
  20.     if (install_src_partition != "") {
  21.         if (! regexpmatch(install_src_partition, "/dev/"))
  22.         install_src_partition = sformat ("/dev/%1", install_src_partition);
  23.     
  24.         y2milestone ("Calling Storage::RemoveDmMapsTo(%1)", install_src_partition);
  25.         Storage::RemoveDmMapsTo (install_src_partition);
  26.     }
  27.     }
  28. }
  29.