-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multipath: add automatic configuration for multipath
Add support for 'rd.multipath=default' for using the default configuration on boot. The intended purpose for this is to help support ostree-based image boots from multipathed devices (such as Fedora and Red Hat CoreOS).
- Loading branch information
Showing
4 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[Unit] | ||
Description=Device-Mapper Multipath Default Configuration | ||
Before=iscsi.service iscsid.service lvm2-activation-early.service | ||
Wants=systemd-udev-trigger.service systemd-udev-settle.service local-fs-pre.target | ||
After=systemd-udev-trigger.service systemd-udev-settle.service | ||
Before=local-fs-pre.target multipathd.service | ||
DefaultDependencies=no | ||
Conflicts=shutdown.target | ||
|
||
ConditionKernelCommandLine=rd.multipath=default | ||
ConditionPathExists=!/etc/multipath.conf | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStartPre=-/usr/bin/mkdir -p /etc/multipath/multipath.conf.d | ||
ExecStart=/usr/sbin/mpathconf --enable | ||
|
||
[Install] | ||
WantedBy=sysinit.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters