From 85fb775ede59a19385b4c5240acbe5e0d064b3e4 Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Fri, 4 Jul 2014 10:38:09 +0200 Subject: [PATCH] copy multipath blacklisting (bnc#885628) --- src/clients/copy_files_finish.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/clients/copy_files_finish.rb b/src/clients/copy_files_finish.rb index 8843ae359..0948d47df 100644 --- a/src/clients/copy_files_finish.rb +++ b/src/clients/copy_files_finish.rb @@ -28,6 +28,8 @@ # Authors: # Jiri Srain # +require "fileutils" + module Yast class CopyFilesFinishClient < Client include Yast::Logger @@ -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" @@ -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