Skip to content

Instantly share code, notes, and snippets.

@athanasio
athanasio / partitioning-raid1-missing
Created May 11, 2018 21:24
kickstart script for RAID1 with missing member
#based on https://github.com/rhinstaller/anaconda/issues/1377#issuecomment-371318773
%pre --interpreter=/bin/bash --log=/var/log/pre-log
for i in `cat /proc/mdstat | grep ^md|cut -d\ -f1`; do
mdadm --stop /dev/$i
done
SURVIVOR=/dev/sda
#[ -b /dev/sdb ] && SURVIVOR=/dev/sdb

Keybase proof

I hereby claim:

  • I am athanasio on github.
  • I am athanasio (https://keybase.io/athanasio) on keybase.
  • I have a public key ASCV2q85Ks24Bs0wfr6M69rzzMdK8CU6_f8Tj0nKKRXAPwo

To claim this, I am signing this object: