Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix diskspace of / issue of rhel 9.* images. #623

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cmd/image/qcow2ova/prep/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,13 @@ write_files:
set -e
for i in /dev/sd[a-z]; do
partprobe $i || true
growpart $i 2 || true
part=$(partprobe -s $i | awk '{print $NF}')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again here also we are selecting the last partition to grow which is true in most of the cases but I'm wondering if we can write some logic so that it lists the linux partitions and only grow the last one, wdys @sudeeshjohn ?

growpart $i $part || true
done
for i in /dev/mapper/mpath[a-z]; do
partprobe $i || true
growpart $i 2 || true
part=$(partprobe -s $i | awk '{print $NF}')
growpart $i $part || true
done

runcmd:
Expand Down
Loading