Skip to content

Commit

Permalink
fix: not installing when free space is somewhere else
Browse files Browse the repository at this point in the history
  • Loading branch information
sitolam committed Jan 1, 2025
1 parent 7a85451 commit 5cc26f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,8 @@ create_alongside_layout() {
fi

# Find the largest free space
largest_free_space=$(parted "$DISK" unit MiB print free | awk '/Free Space/' | tr -s ' ' | sort -t ' ' -k3,3n | sed 's/MiB//g' | tail -n1)
start=$(echo $largest_free_space | awk '{print $1}')
largest_free_space=$(parted "$DISK" unit MiB print free | awk '/Free Space/' | tr -s ' ' | sed 's/^ //' | sort -t ' ' -k3,3n | sed 's/MiB//g' | tail -n1)
start=$(echo $largest_free_space | awk '{print $1}' | awk '{print int($1+0.999)}')
end=$(echo $largest_free_space | awk '{print $2}')

# Calculate sizes
Expand Down

0 comments on commit 5cc26f2

Please sign in to comment.