Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropped calls to /sbin/insserv #16

Merged
merged 2 commits into from Mar 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions package/yast2-multipath.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 24 11:12:09 UTC 2017 - mfilka@suse.com

- bnc#1026027
- removed calls to /sbin/insserv
- 3.1.8

-------------------------------------------------------------------
Mon Jun 6 16:29:48 UTC 2016 - igonzalezsosa@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-multipath.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-multipath
Version: 3.1.7
Version: 3.1.8
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
19 changes: 0 additions & 19 deletions src/include/multipath/complex.rb
Expand Up @@ -24,8 +24,6 @@
# Summary: Complex stuffs for multipath yast module
# Authors: Coly Li <coyli@novell.com>
#
# $Id: complex.ycp,v 1.49 2007/01/22 03:25:16 coly Exp $
#
# Compelx stuffs for multipath yast module, this file is included
# by Multipath.ycp.
module Yast
Expand Down Expand Up @@ -3627,21 +3625,6 @@ def Update_Service_Status
nil
end

def CallInsserv(on, name)
Builtins.y2milestone("CallInsserv on:%1 name:%2", on, name)
scrname = Ops.add("/etc/init.d/", name)
if Ops.greater_than(SCR.Read(path(".target.size"), scrname), 0)
cmd = "cd / && /sbin/insserv "
cmd = Ops.add(cmd, "-r ") if !on
cmd = Ops.add(cmd, scrname)
Builtins.y2milestone("CallInsserv cmd %1", cmd)
bo = Convert.to_map(SCR.Execute(path(".target.bash_output"), cmd))
Builtins.y2milestone("CallInsserv bo %1", bo)
end

nil
end

def Start_Service
return if @service_status == 1
prop_info = _("Use multipath failed:") + "\n"
Expand All @@ -3668,7 +3651,6 @@ def Start_Service
return
end
else
# CallInsserv(true, "multipathd");
Storage.ActivateMultipath(true)
end

Expand Down Expand Up @@ -3705,7 +3687,6 @@ def Stop_Service
end
else
Storage.ActivateMultipath(false)
# CallInsserv(false, "multipathd");
end

@service_status = 0
Expand Down