From 026d642e2b5e0a1c97e42e5d22818dd47264f914 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sun, 24 Mar 2019 12:28:10 +0000 Subject: [PATCH] trivial: Automatically use the OFFLINE flag for devices that require it We use the same flow for UEFI updates, and this allows it to just work... --- src/fu-util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fu-util.c b/src/fu-util.c index 6a4a9e3d0..35f788076 100644 --- a/src/fu-util.c +++ b/src/fu-util.c @@ -1794,6 +1794,9 @@ fu_util_update_device_with_release (FuUtilPrivate *priv, fwupd_checksum_get_best (checksums), error)) return FALSE; + /* if the device specifies ONLY_OFFLINE automatically set this flag */ + if (fwupd_device_has_flag (dev, FWUPD_DEVICE_FLAG_ONLY_OFFLINE)) + priv->flags |= FWUPD_INSTALL_FLAG_OFFLINE; return fwupd_client_install (priv->client, fwupd_device_get_id (dev), fn, priv->flags, NULL, error);