#!/bin/bash # Ensure leftover MD and LVM partitions on the target disk are not # automatically activated by udev, thus preventing the installer from # gaining exclusive access to the disk. set -euo pipefail # Configure mdadm if [ ! -e /etc/mdadm.conf.d/coreos-installer.conf ]; then mkdir -p /etc/mdadm.conf.d cat > /etc/mdadm.conf.d/coreos-installer.conf <> /etc/lvm/lvm.conf <