- If multipath-tools is newly installed, load dm-multipath

(bsc#1196898)

OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=276
This commit is contained in:
Martin Wilck 2022-04-25 09:55:14 +00:00 committed by Git OBS Bridge
parent f3e9381312
commit 1ff47396e9
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 28 12:54:15 UTC 2022 - Martin Wilck <mwilck@suse.com>
- If multipath-tools is newly installed, load dm-multipath
(bsc#1196898)
-------------------------------------------------------------------
Wed Feb 16 13:24:47 UTC 2022 - Martin Wilck <mwilck@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package multipath-tools
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -81,6 +81,7 @@ availability of the map devices.
# Currently, it makes no sense to split out libmpathpersist and libmpathcmd
# separately. libmultipath has no stable API at all, and it depends
# on libmpathcmd (to be fixed). libmpathpersist depends on libmultipath
@ -193,6 +194,9 @@ install -m 644 -D %{SOURCE3} %{buildroot}/usr/lib/dracut/dracut.conf.d/dm-parts.
%post
[ -f /.buildenv ] && exit 0
%service_add_post multipathd.socket multipathd.service
if [ $1 -eq 1 ]; then
[ ! -x /sbin/modprobe ] || /sbin/modprobe dm_multipath || true
fi
%{?regenerate_initrd_post}
exit 0