From 5240c07d3c8302714e70299cd4878a2139082aa4 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Mon, 16 Oct 2023 09:20:13 -0700 Subject: [PATCH] util: Fix runners to extent to max disk size (#460) THe `lvextend` command extends the logical volume. However, the `resize2fs` command is needed to extend the filesystem to fill the logical volume. Prior to this patch the filesystem ran out of space despite there being enough room in the volume. This was just wasted free space. --- util/github-runners-vagrant/provision_root.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/util/github-runners-vagrant/provision_root.sh b/util/github-runners-vagrant/provision_root.sh index f18a170c95..34c2d811de 100644 --- a/util/github-runners-vagrant/provision_root.sh +++ b/util/github-runners-vagrant/provision_root.sh @@ -75,3 +75,4 @@ apt-get autoremove -y # Resize the root partition to fill up all the free size on the disk lvextend -l +100%FREE $(df / --output=source | sed 1d) +resize2fs $(df / --output=source | sed 1d)