fix: do not overlay mount persistent in recovery mode (#387)

This commit is contained in:
Ettore Di Giacinto
2023-08-21 16:26:32 +02:00
committed by GitHub
parent 7c344c6887
commit dab2c5eb7d

View File

@@ -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 && \