From 7cdb71d5b702922ebaa47b595d0f2e7c04752fba Mon Sep 17 00:00:00 2001 From: Jan Musial Date: Mon, 13 Jan 2020 10:42:19 +0100 Subject: [PATCH] Don't fail boot if opencas config is missing Signed-off-by: Jan Musial --- utils/casctl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/casctl b/utils/casctl index 5912c6a..b2d0290 100755 --- a/utils/casctl +++ b/utils/casctl @@ -109,7 +109,8 @@ def settle(timeout, interval): not_initialized = opencas.wait_for_startup(timeout, interval) except Exception as e: eprint(e) - exit(1) + # Don't fail the boot if we're missing the config + exit(0) if not_initialized: eprint("Open CAS initialization failed. Couldn't set up all required devices")