Comment 9 for bug 1550448

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-03-04 16:29 EDT-------
Here's the validation on the real hardware this time.

~ # mdadm --detail --verbose /dev/md0 | grep -o '/dev/.*'
/dev/md0:
/dev/nvme0n1p2
/dev/nvme1n1p2

~ # mdadm --detail --verbose /dev/md0 | sed -n 's:.*\(/dev/.*\)[0-9]\+$:\1:p'
/dev/nvme0n1p
/dev/nvme1n1p

Mar 4 20:56:10 main-menu[301]: INFO: Menu item 'grub-installer' selected
Mar 4 20:56:10 grub-installer: info: architecture: ppc64el/chrp_ibm
Mar 4 20:56:11 grub-installer: info: Identified partition label for /dev/md0: loop
Mar 4 20:56:11 grub-installer: info: Wiping PReP partition /dev/nvme0n1p1
Mar 4 20:56:11 grub-installer: info: Wiping PReP partition /dev/nvme1n1p1
Mar 4 20:56:12 grub-installer: info: Installing grub on '/dev/nvme1n1p1'
Mar 4 20:56:12 grub-installer: info: grub-install does not support --no-floppy
Mar 4 20:56:12 grub-installer: info: Running chroot /target grub-install --force "/dev/nvme0n1p1"
Mar 4 20:56:12 grub-installer: Installing for powerpc-ieee1275 platform.
Mar 4 20:56:12 grub-installer: Installation finished. No error reported.
Mar 4 20:56:12 grub-installer: info: grub-install ran successfully
Mar 4 20:56:12 grub-installer: info: grub-install does not support --no-floppy
Mar 4 20:56:12 grub-installer: info: Running chroot /target grub-install --force "/dev/nvme1n1p1"
Mar 4 20:56:12 grub-installer: Installing for powerpc-ieee1275 platform.
Mar 4 20:56:13 grub-installer: Installation finished. No error reported.
Mar 4 20:56:13 grub-installer: info: grub-install ran successfully

if echo $disc_offered | grep -q '/dev/md[0-9]\+'; then
if mdadm --detail --verbose $disc_offered \
| sed -n 's:.*\(/dev/.*\)[0-9]\+$:\1:p' \
| grep "${prep_p%[0-9]*}"; then
wipe_bootdevs="$wipe_bootdevs $prep_p"
fi
fi