mirror of
https://github.com/xcat2/confluent.git
synced 2026-06-01 07:51:33 +00:00
7d7f001826
Newer mdadm versions may load arrays under names like `/dev/md/<hostname>:raid` after reboot instead of `/dev/md/raid`. Detect both naming schemes when waiting for the array device and use the resolved path consistently when determining the underlying md device name. Also clear existing md superblocks before wiping signatures to avoid stale RAID metadata interfering with array creation or assembly.