Class: Yast::CopyFilesFinishClient

Inherits:
Installation::FinishClient
  • Object
show all
Includes:
I18n
Defined in:
src/lib/installation/clients/copy_files_finish.rb

Overview

Note:

This client expect that SCR is not yet switched. Expect the hell to be frozen if you call it with switched SCR.

Step of base installation finish including mainly files to copy from insts-sys to target system

Instance Method Summary collapse

Constructor Details

#initializeCopyFilesFinishClient

Returns a new instance of CopyFilesFinishClient.



46
47
48
49
# File 'src/lib/installation/clients/copy_files_finish.rb', line 46

def initialize
  super
  textdomain "installation"
end

Instance Method Details

#modesObject



51
52
53
# File 'src/lib/installation/clients/copy_files_finish.rb', line 51

def modes
  [:installation, :update, :autoinst]
end

#titleObject



55
56
57
# File 'src/lib/installation/clients/copy_files_finish.rb', line 55

def title
  _("Copying files to installed system...")
end

#writeObject

Raises:

  • RuntimeError if called with switched SCR to have defined behavior and prevent accidental overwrite and data loss



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'src/lib/installation/clients/copy_files_finish.rb', line 61

def write
  if Yast::WFM.scr_chrooted?
    raise "Calling CopyFilesFinish client with SCR switched to #{Yast::WFM.scr_root}"
  end

  # bugzilla #221815 and #485980
  # Adding blacklisted modules into the /etc/modprobe.d/50-blacklist.conf
  # This should run before the SCR::switch function
  adjust_modprobe_blacklist

  copy_hardware_status
  copy_vnc
  copy_multipath
  copy_nvme
  # Copy cio_ignore whitelist (bsc#1095033)
  copy_active_devices

  handle_second_stage

  # Copy control.xml so it can be read once again during continue mode
  # FIXME: probably won't work as expected with new multimedia layout.
  #   Ideally final modified control.xml should be saved.
  copy_control_file

  # Copy /media.1/media to the installed system (fate#311377)
  # Formerly /media.1/build (bsc#1062297)
  copy_media_file

  # List of files used as additional workflow definitions
  # TODO check if it is still needed
  copy_all_workflow_files

  # Copy files from inst-sys to the just installed system
  # FATE #301937, items are defined in the control file
  SystemFilesCopy.SaveInstSysContent

  # bugzila #328126
  # Copy 70-persistent-cd.rules ... if not updating
  copy_hardware_udev_rules

  # fate#319624
  copy_ssh_files
  # Do not rely on copy_ssh_files returned value (bsc#1099104)
  nil
end