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
Wrap
Text File
|
2006-11-29
|
825b
|
29 lines
/**
* 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);
}
}
}