From 45b3c230e1cc9c0e80bedffd925ddee603e736dd Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 19 Aug 2025 17:08:29 -0400 Subject: [PATCH] Fixed bug in disk resize code. --- pi4/files/usr/local/bin/configure-stormux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pi4/files/usr/local/bin/configure-stormux b/pi4/files/usr/local/bin/configure-stormux index 7797a76..cd2579f 100755 --- a/pi4/files/usr/local/bin/configure-stormux +++ b/pi4/files/usr/local/bin/configure-stormux @@ -83,7 +83,7 @@ if [[ $diskSize -le 7 ]]; then # Handle sda2, sdb3 style diskDevice="$(echo "$diskSource" | sed 's/[0-9]*$//')" fi - sudo "${sudoFlags[@]}" parted --script "$diskDevice" resizepart 2 100% + echo "Yes" | sudo "${sudoFlags[@]}" parted ---pretend-input-tty "$diskDevice" resizepart 2 100% sudo "${sudoFlags[@]}" resize2fs -f "$diskSource" fi fi