diff options
author | John Estabrook <jestabro@vyos.io> | 2023-05-23 10:56:57 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-11-15 11:29:04 -0600 |
commit | 7d6c262976eba624b935c96a7495cc392158b8ff (patch) | |
tree | df0211cccd8e399028112f763f1d14e91ef786d1 /src/system/grub_update.py | |
parent | 9e3b769f8402a816f6c7fa80ff12c9579c3f5243 (diff) | |
download | vyos-1x-7d6c262976eba624b935c96a7495cc392158b8ff.tar.gz vyos-1x-7d6c262976eba624b935c96a7495cc392158b8ff.zip |
image: T4516: service vyos-grub-update should exit on live boot
Diffstat (limited to 'src/system/grub_update.py')
-rw-r--r-- | src/system/grub_update.py | 3 |
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) |