test: Generalize fs resizing in vm.install
This should work on RHEL as well.
This commit is contained in:
parent
bdffaa02f4
commit
6ddaa5e0dd
@ -5,8 +5,9 @@ SRPM="$1"
|
|||||||
# Grow root partition to make room for images. This only works on Fedora right now.
|
# Grow root partition to make room for images. This only works on Fedora right now.
|
||||||
echo ", +" | sfdisk -N 2 -f /dev/vda
|
echo ", +" | sfdisk -N 2 -f /dev/vda
|
||||||
partprobe
|
partprobe
|
||||||
pvresize /dev/vda2
|
pvs --noheadings -opv_name | xargs pvresize
|
||||||
lvresize fedora/root -l+100%FREE -r
|
rootlv=$(findmnt --noheadings -oSOURCE /)
|
||||||
|
lvresize $rootlv -l+100%FREE -r
|
||||||
|
|
||||||
rm -rf build-results
|
rm -rf build-results
|
||||||
su builder -c "/usr/bin/mock --no-clean --resultdir build-results --rebuild $SRPM"
|
su builder -c "/usr/bin/mock --no-clean --resultdir build-results --rebuild $SRPM"
|
||||||
|
Loading…
Reference in New Issue
Block a user