From a9ae619129e39de87eea2bceab7983f3ceda70b6 Mon Sep 17 00:00:00 2001 From: duyiwei Date: Thu, 6 Jun 2024 23:46:15 +0800 Subject: [PATCH] provide dest_device when using iso/pxe customize --- src/cmdline/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmdline/mod.rs b/src/cmdline/mod.rs index f90237859..7a106a581 100644 --- a/src/cmdline/mod.rs +++ b/src/cmdline/mod.rs @@ -260,9 +260,9 @@ pub struct CommonCustomizeConfig { /// Install destination device /// /// Automatically run installer, installing to the specified destination - /// device. The resulting boot media will overwrite the destination - /// device without confirmation. - #[arg(long, value_name = "path")] + /// device that the user must provide. The resulting boot media will + /// overwrite the destination device without confirmation. + #[arg(long, value_name = "path", required_unless_present = "installer_config")] pub dest_device: Option, /// Kernel and bootloader console for dest ///