Skip to content

Commit

Permalink
Make sure we also mount EFI in upgrades if it was not already mounted
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany committed Jan 25, 2024
1 parent b4417f3 commit c183404
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,12 @@ func NewUpgradeSpec(cfg v1.Config) (*v1.UpgradeSpec, error) {
}
}

if ep.EFI != nil {
if ep.EFI.MountPoint == "" {
ep.EFI.MountPoint = constants.EfiDir
}
}

// This is needed if we want to use the persistent as tmpdir for the upgrade images
// as tmpfs is 25% of the total RAM, we cannot rely on the tmp dir having enough space for our image
// This enables upgrades on low ram devices
Expand Down

0 comments on commit c183404

Please sign in to comment.