summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-05-23 10:56:57 -0500
committerJohn Estabrook <jestabro@vyos.io>2023-12-16 20:37:10 -0600
commit72a708e267839268652a7fabf4de1a16930dcc6e (patch)
tree6a7295cddea45c565137e4621a28042a1101622c /src/system
parentc5509ebd8e81c2ab6a9c316b45a8bd157a0e8e65 (diff)
downloadvyos-1x-72a708e267839268652a7fabf4de1a16930dcc6e.tar.gz
vyos-1x-72a708e267839268652a7fabf4de1a16930dcc6e.zip
image: T4516: service vyos-grub-update should exit on live boot
(cherry picked from commit 7d6c262976eba624b935c96a7495cc392158b8ff)
Diffstat (limited to 'src/system')
-rw-r--r--src/system/grub_update.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/system/grub_update.py b/src/system/grub_update.py
index ebdc73af0..1ae66464b 100644
--- a/src/system/grub_update.py
+++ b/src/system/grub_update.py
@@ -151,6 +151,9 @@ def parse_menuntries(grub_path: str) -> list:
if __name__ == '__main__':
+ if image.is_live_boot():
+ exit(0)
+
# Skip everything if update is not required
if not cfg_check_update():
exit(0)