8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'src/lib/installation/clients/save_y2logs.rb', line 8
def main
Yast.import "Directory"
Yast.import "Installation"
Yast.import "ProductFeatures"
return unless ProductFeatures.GetBooleanFeature("globals", "save_y2logs")
target_path = ::File.join(
Yast::Installation.destdir,
Yast::Directory.logdir
)
target_tmp = File.join(Yast::Installation.destdir, "tmp")
tmpdir = File.exist?(target_tmp) ? target_tmp : "/tmp"
WFM.Execute(Yast::Path.new(".local.bash"),
"TMPDIR=#{tmpdir} /usr/sbin/save_y2logs '#{target_path}/yast-installation-logs.tar.xz'")
end
|