From d2d7cf0c70721a5ffe2bb4981bc942babfad284e Mon Sep 17 00:00:00 2001 From: Denis Benato Date: Wed, 4 Dec 2024 16:41:02 +0100 Subject: [PATCH] Avoid failing disk detection by prepending /dev/ if the disk was specified as 'sda' --- __frzr-bootstrap | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/__frzr-bootstrap b/__frzr-bootstrap index be5bd4d..981799a 100644 --- a/__frzr-bootstrap +++ b/__frzr-bootstrap @@ -278,6 +278,12 @@ frzr_bootstrap() { else echo "specified disk is '$DISK'" fi + + # Check if DISK starts with '/dev/' and if not prepend that + if [[ $DISK != /dev/* ]]; then + DISK="/dev/$DISK" + fi + echo "Checking for existing FRZR deployments" # Checking for existing installation