From 0ae2c4ca421c94ff52436d97195f6a20357d3a36 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Thu, 7 Mar 2024 08:10:34 +0100 Subject: [PATCH] ignore unsupported kernel flags A kernel panic is too hard. A warning is enough to inform the user. --- src/env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env.rs b/src/env.rs index ccbc37892b..0987352b71 100644 --- a/src/env.rs +++ b/src/env.rs @@ -87,7 +87,7 @@ impl Default for Cli { } "--" => args.extend(&mut words), _ if image_path.is_none() => image_path = Some(word), - word => panic!( + word => warn!( "Found argument '{word}' which wasn't expected, or isn't valid in this context If you tried to supply `{word}` as a value rather than a flag, use `-- {word}`"