Meta: Make file-system resizing work on macOS

Previously we'd fail to execute the resize2fs tool which then results
in us recreating the image from scratch:

resizing disk image...
Image resized.
line 132: /usr/sbin/resize2fs: No such file or directory
failed, not using existing image
done
This commit is contained in:
Gunnar Beutner 2022-10-27 13:50:07 +02:00 committed by Linus Groh
parent 558901acb4
commit f2ccb702e8
Notes: sideshowbarker 2024-07-17 04:48:03 +09:00

View file

@ -49,6 +49,7 @@ if [ "$(uname -s)" = "Darwin" ]; then
export PATH="/opt/homebrew/opt/e2fsprogs/sbin:$PATH" export PATH="/opt/homebrew/opt/e2fsprogs/sbin:$PATH"
E2FSCK="e2fsck" E2FSCK="e2fsck"
RESIZE2FS_PATH="resize2fs"
elif [ "$(uname -s)" = "SerenityOS" ]; then elif [ "$(uname -s)" = "SerenityOS" ]; then
E2FSCK="/usr/local/sbin/e2fsck" E2FSCK="/usr/local/sbin/e2fsck"
else else