]> git.ipfire.org Git - thirdparty/dracut.git/commit
Give --persistent_policy precedence over /dev/mapper names 362/head
authorMartin Wilck <mwilck@suse.de>
Wed, 5 Oct 2016 11:54:26 +0000 (13:54 +0200)
committerDaniel Molkentin <dmolkentin@suse.com>
Wed, 17 Jan 2018 11:05:44 +0000 (12:05 +0100)
commitb6054b5de67ca6ba6bafaba0a51971582db3ad21
tree7d86004f502d6a36939690ebac5445b80eb05566
parent308c4066fee31b08d67413ce7920d63c8d05038e
Give --persistent_policy precedence over /dev/mapper names

There is currently no way to override dracut's preference for
/dev/mapper device names. But using these is problematic in
different scenarios: For example, if a user has a multipath-
enabled system but wants to disable multipath, or if the
names of multipath maps change because of configuration changes
(e.g. toggling user_friendly_names in /etc/multipath.conf).

This patch makes dracut prefer the user-specified
--persistent_policy names over /dev/mapper names.

It might be worthwhile to discuss why dracut prefers /dev/mapper
of /dev/disk/by-uuid at all. This preference was introduced
in 9037b63e with the argument "dm devices maintain /dev/mapper/* as
persistent names", but that's wrong for the scenarios mentioned
above, and is not a compelling reason for preferring /dev/mapper
over /dev/disk/by-uuid.

References: bsc#908143

Signed-off-by: Martin Wilck <mwilck@suse.de>
dracut-functions.sh