home *** CD-ROM | disk | FTP | other *** search
- /**
- * File: include/packager/storage_include.ycp
- * Module: Packager
- * Summary: Storage calls
- * Authors: Lukas Ocilka <locilka@suse.cz>
- *
- */
- {
- textdomain "installation";
-
- import "Storage";
- import "SourceManager";
-
- /**
- * Function releases the the device when EVMS is used and the install
- * source is disk. See bugzilla 208222 for more details.
- */
- void ReleaseHDDUsedAsInstallationSource () {
- string install_src_partition = SourceManager::InstallationSourceOnPartition();
- if (install_src_partition != "") {
- if (! regexpmatch(install_src_partition, "/dev/"))
- install_src_partition = sformat ("/dev/%1", install_src_partition);
-
- y2milestone ("Calling Storage::RemoveDmMapsTo(%1)", install_src_partition);
- Storage::RemoveDmMapsTo (install_src_partition);
- }
- }
- }
-