Skip to content

Commit

Permalink
copy multipath blacklisting (bnc#885628)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jul 4, 2014
1 parent 2c6e5d2 commit 85fb775
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/clients/copy_files_finish.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
# Authors:
# Jiri Srain <jsrain@suse.cz>
#
require "fileutils"

module Yast
class CopyFilesFinishClient < Client
include Yast::Logger
Expand All @@ -42,6 +44,7 @@ def main
Yast.import "Linuxrc"
Yast.import "Installation"
Yast.import "Directory"
Yast.import "Mode"
Yast.import "Packages"
Yast.import "ProductControl"
Yast.import "ProductProfile"
Expand Down Expand Up @@ -109,6 +112,17 @@ def main
)
end

# Copy multipath stuff (bnc#885628)
# Only in install, as update should keep its old config
if Mode.installation
multipath_config = "/etc/multipath/wwids"
if File.exist?(multipath_config)
Builtins.y2milestone("Copying multipath blacklist")
target_path = File.join(Installation.destdir, multipath_config)
::FileUtils.mkdir_p(File.dirname(target_path))
::FileUtils.cp(multipath_config, target_path)
end
end

# --------------------------------------------------------------
# Copy /etc/install.inf into built system so that the
Expand Down

0 comments on commit 85fb775

Please sign in to comment.