summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-11-26 09:25:01 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-11-26 09:25:01 -0600
commit0b97bde2cb04cf5e23350798f972abcee4bfe4ee (patch)
tree6cd19bf6b0f536a94f36253f6d7c561b339338d3 /src
parent6afd6eeb87a3a4ecbbd5aa9c67622d0b3c27721c (diff)
downloadvyos-1x-0b97bde2cb04cf5e23350798f972abcee4bfe4ee.tar.gz
vyos-1x-0b97bde2cb04cf5e23350798f972abcee4bfe4ee.zip
image-tools: T4516: exit grub-update service if running in docker
Diffstat (limited to 'src')
-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 366a85344..3c851f0e0 100644
--- a/src/system/grub_update.py
+++ b/src/system/grub_update.py
@@ -41,6 +41,9 @@ if __name__ == '__main__':
if image.is_live_boot():
exit(0)
+ if image.is_running_as_container():
+ exit(0)
+
# Skip everything if update is not required
if not cfg_check_update():
exit(0)