From dab2c5eb7dd2387fb6c83faa8e89f32e444b4c53 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 21 Aug 2023 16:26:32 +0200 Subject: [PATCH] fix: do not overlay mount persistent in recovery mode (#387) --- .../kairos-overlay-files/files/system/oem/12_nvidia.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bundles/kairos-overlay-files/files/system/oem/12_nvidia.yaml b/packages/bundles/kairos-overlay-files/files/system/oem/12_nvidia.yaml index 47d9e7d..6b2fde6 100644 --- a/packages/bundles/kairos-overlay-files/files/system/oem/12_nvidia.yaml +++ b/packages/bundles/kairos-overlay-files/files/system/oem/12_nvidia.yaml @@ -50,7 +50,8 @@ stages: ### Usually this is not the case as there is no need of subtrees, but due to how overlayfs work the workdir and uppermount needs to be in the same filesystem. stages: initramfs.before: - - commands: + - if: '[ ! -f "/run/cos/recovery_mode" ]' + commands: - umount /usr/local - | mkdir -p /run/mount/persistent && \