Module: Yast::PackagerStorageIncludeInclude
- Defined in:
- ../../src/include/packager/storage_include.rb
Instance Method Summary (collapse)
- - (Object) initialize_packager_storage_include(include_target)
-
- (Object) ReleaseHDDUsedAsInstallationSource
Function releases the the device when EVMS is used and the install source is disk.
Instance Method Details
- (Object) initialize_packager_storage_include(include_target)
12 13 14 15 16 |
# File '../../src/include/packager/storage_include.rb', line 12 def initialize_packager_storage_include(include_target) textdomain "installation" Yast.import "SourceManager" end |
- (Object) ReleaseHDDUsedAsInstallationSource
Function releases the the device when EVMS is used and the install source is disk. See bugzilla 208222 for more details.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File '../../src/include/packager/storage_include.rb', line 20 def ReleaseHDDUsedAsInstallationSource install_src_partition = SourceManager.InstallationSourceOnPartition if install_src_partition != "" if !Builtins.regexpmatch(install_src_partition, "/dev/") install_src_partition = Builtins.sformat( "/dev/%1", install_src_partition ) end Builtins.y2milestone( "Calling Storage::RemoveDmMapsTo(%1)", install_src_partition ) ret = WFM.call( "wrapper_storage", ["RemoveDmMapsTo", [install_src_partition]] ) Builtins.y2milestone( "Storage::RemoveDmMapsTo(%1) result: %2", install_src_partition, ret ) end nil end |