diff options
author | John Estabrook <jestabro@vyos.io> | 2024-02-17 14:12:57 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-17 14:12:57 -0600 |
commit | 2a6318dfc1c3eb6e152a7187306f6308e279a30c (patch) | |
tree | 35a80af3132d23f5736e5e82c5911feb4437fc1a /python | |
parent | ab5f98bd469ce7aadf8483b968b9f9f9e82a9812 (diff) | |
parent | 5949ff72a9f953da9d06d1ad75add0e6023d0dc4 (diff) | |
download | vyos-1x-2a6318dfc1c3eb6e152a7187306f6308e279a30c.tar.gz vyos-1x-2a6318dfc1c3eb6e152a7187306f6308e279a30c.zip |
Merge pull request #3024 from jestabro/pxe-boot
image-tools: T6041: fix logic of is_live_boot to allow for PXE boot
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/system/image.py | 6 |
1 files 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""" |