summaryrefslogtreecommitdiff
path: root/src/system/grub_update.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-11-26 09:25:01 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-12-16 20:37:10 -0600
commite07b24075561842e35df4e11a00f17960c0f9fff (patch)
tree85c2408c387838be846039981bbdd2640131cac0 /src/system/grub_update.py
parent623cc2935d3dfc1a0715f61cf3ec45fbb23d2787 (diff)
downloadvyos-1x-e07b24075561842e35df4e11a00f17960c0f9fff.tar.gz
vyos-1x-e07b24075561842e35df4e11a00f17960c0f9fff.zip
image-tools: T4516: exit grub-update service if running in docker
(cherry picked from commit 0b97bde2cb04cf5e23350798f972abcee4bfe4ee)
Diffstat (limited to 'src/system/grub_update.py')
-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)