Skip to content

Commit

Permalink
Update hack message
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany committed Feb 19, 2024
1 parent 41dfb07 commit 39992cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/action/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ func (u *UpgradeAction) upgradeInstallStateYaml() error {
}
}

// Hack to ensure we are not using / or /.snapshots mountpoints which could be reported
// from ghw if btrfs snapshots are in use.
// Hack to ensure we are not using / or /.snapshots mountpoints. Btrfs based deployments
// mount state partition into multiple locations
statePath := filepath.Join(u.spec.Partitions.State.MountPoint, constants.InstallStateFile)
if u.spec.Partitions.State.MountPoint == "/" || u.spec.Partitions.State.MountPoint == "/.snapshots" {
statePath = filepath.Join(constants.RunningStateDir, constants.InstallStateFile)
Expand Down

0 comments on commit 39992cb

Please sign in to comment.