From 2d480f350853a9d7dfbe1593ba9389764785718c Mon Sep 17 00:00:00 2001 From: Ben Howard Date: Thu, 28 May 2020 13:26:56 -0600 Subject: [PATCH] Drop multipath-generator The multipath generator was a nice idea to help make things automatic based on `rd.multipath=default`. However, changes in Ignition Dracut and the direction of using explict kargs makes this well-intentioned module cruft. See: https://github.com/coreos/fedora-coreos-tracker/issues/465 --- .../40ignition-ostree/multipath-generator | 83 ------------------- 1 file changed, 83 deletions(-) delete mode 100755 overlay.d/05core/usr/lib/dracut/modules.d/40ignition-ostree/multipath-generator diff --git a/overlay.d/05core/usr/lib/dracut/modules.d/40ignition-ostree/multipath-generator b/overlay.d/05core/usr/lib/dracut/modules.d/40ignition-ostree/multipath-generator deleted file mode 100755 index cf47eb5e20..0000000000 --- a/overlay.d/05core/usr/lib/dracut/modules.d/40ignition-ostree/multipath-generator +++ /dev/null @@ -1,83 +0,0 @@ -#!/bin/bash -# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- -# ex: ts=8 sw=4 sts=4 et filetype=sh - -# On a regular boot we rely on `/dev/disk/by-label/{boot,root} to exist. -# However, if multipath is enabled, then automatic discovery of boot/root -# gets racy. If the user has not put `rd.multipath` then generator exists -# without making any modifications. - -set -e - -# Generators don't have logging right now -# https://github.com/systemd/systemd/issues/15638 -exec 1>/dev/kmsg; exec 2>&1 - -UNIT_DIR="${1:-/tmp}" -mkdir -p "${UNIT_DIR}" - -skip() { - echo "multipath-generator: skipping root on multipath: ${@}" - exit 0 -} - -# Check if we expect multipath root. These are the commdline options -# checked by Dracut in https://github.com/dracutdevs/dracut/blob/master/modules.d/90multipath/multipathd.service#L9-L12 -[ -f /etc/multipath.conf ] && mpath=1 || mpath=0 - -for arg in $( /run/sysroot.env < "${firstboot_cfg}/ignition-mpath.conf" <> "${secondboot_cfg}/ignition-mpath.conf" <