Skip to content

Commit

Permalink
Meta: Make file-system resizing work on macOS
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gunnarbeutner authored and linusg committed Nov 4, 2022
1 parent 558901a commit f2ccb70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Meta/build-image-qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ if [ "$(uname -s)" = "Darwin" ]; then
export PATH="/opt/homebrew/opt/e2fsprogs/sbin:$PATH"

E2FSCK="e2fsck"
RESIZE2FS_PATH="resize2fs"
elif [ "$(uname -s)" = "SerenityOS" ]; then
E2FSCK="/usr/local/sbin/e2fsck"
else
Expand Down

0 comments on commit f2ccb70

Please sign in to comment.