Module: Yast::PackagerStorageIncludeInclude

Defined in:
src/include/packager/storage_include.rb

Overview

Storage calls

Instance Method Summary collapse

Instance Method Details

#initialize_packager_storage_include(_include_target) ⇒ Object


5
6
7
8
9
# File 'src/include/packager/storage_include.rb', line 5

def initialize_packager_storage_include(_include_target)
  textdomain "installation"

  Yast.import "SourceManager"
end

#ReleaseHDDUsedAsInstallationSourceObject

Function releases the the device when EVMS is used and the install source is disk. See bugzilla 208222 for more details.


13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'src/include/packager/storage_include.rb', line 13

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
  end

  Builtins.y2milestone "install src partition #{install_src_partition}"

  nil
end