Verified Commit c6a408c1 authored by anarcat's avatar anarcat
Browse files

installer: add proper error messages to tor-raid-setup install hook

This was failing silently in the single-disk case, now it will fail
more noisily.
parent 8aad061b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -30,15 +30,18 @@ if [ -e "$DISK2" ]; then
    echo "I: installing grub on secondary disk $DISK2"
    if chroot "$MNTPOINT" grub-install "$DISK2"; then
        grub_success() {
            echo "I: $0 completed"
            true
        }
    else
        grub_success() {
            echo "E: $0 failed to install grub on $DISK2"
            false
        }
    fi
else
    grub_success() {
        echo "E: $0 could not find second disk, $DISK2"
        false
    }
fi