From 64e8ae09386fc9f311a9309ffab805abd3848ce1 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Fri, 16 Feb 2024 13:11:06 -0600 Subject: image-tools: T6041: fix logic of is_live_boot to allow for PXE boot (cherry picked from commit 5949ff72a9f953da9d06d1ad75add0e6023d0dc4) --- python/vyos/system/image.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/vyos/system/image.py b/python/vyos/system/image.py index 5460e6a36..ba9a6dfa7 100644 --- a/python/vyos/system/image.py +++ b/python/vyos/system/image.py @@ -259,9 +259,9 @@ def is_live_boot() -> bool: running_image_result = regex_filter.match(cmdline) if running_image_result: boot_type: str = running_image_result.groupdict().get('boot_type', '') - if boot_type == 'live': - return True - return False + if boot_type == 'boot': + return False + return True def if_not_live_boot(func): """Decorator to call function only if not live boot""" -- cgit v1.2.3