Closed davidcassany closed 1 month ago
Yes, in fact there used to be only a snapshotsUmount one, but no snapshotsMount. It was this way because there was the assumption it was only mounted once and at the very same stage for all cases. This turns not to be accurate enough when upgrading the snapshot from the recovery system (likely to be a squashfs image on a different partition).
This is fixes an issue about how we were updating the
state.yaml
file after upgrades. For the corner case of running upgrades from the recovery system the<state_partition>/@/.snapshots
is unmounted before upgrading thestate.yaml
and this mount is required to properly list available snapshots and reflect that instate.yaml
.