1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

Meta: Use consistent indents in build-image-qemu.sh

This is a whitespace only commit to avoid confusion with the
next feature commit.
This commit is contained in:
Chris Frey 2021-12-11 21:28:16 -05:00 committed by Brian Gianforcaro
parent 319cdf4ff3
commit 951f7becec

View file

@ -117,25 +117,25 @@ printf "mounting filesystem... "
mkdir -p mnt mkdir -p mnt
use_genext2fs=0 use_genext2fs=0
if [ "$(uname -s)" = "Darwin" ]; then if [ "$(uname -s)" = "Darwin" ]; then
mount_cmd="fuse-ext2 _disk_image mnt -o rw+,allow_other,uid=501,gid=20" mount_cmd="fuse-ext2 _disk_image mnt -o rw+,allow_other,uid=501,gid=20"
elif [ "$(uname -s)" = "OpenBSD" ]; then elif [ "$(uname -s)" = "OpenBSD" ]; then
VND=$(vnconfig _disk_image) VND=$(vnconfig _disk_image)
mount_cmd="mount -t ext2fs "/dev/${VND}i" mnt/" mount_cmd="mount -t ext2fs "/dev/${VND}i" mnt/"
elif [ "$(uname -s)" = "FreeBSD" ]; then elif [ "$(uname -s)" = "FreeBSD" ]; then
MD=$(mdconfig _disk_image) MD=$(mdconfig _disk_image)
mount_cmd="fuse-ext2 -o rw+,direct_io "/dev/${MD}" mnt/" mount_cmd="fuse-ext2 -o rw+,direct_io "/dev/${MD}" mnt/"
else else
mount_cmd="mount _disk_image mnt/" mount_cmd="mount _disk_image mnt/"
fi fi
if ! eval "$mount_cmd"; then if ! eval "$mount_cmd"; then
if command -v genext2fs 1>/dev/null ; then if command -v genext2fs 1>/dev/null ; then
echo "mount failed but genext2fs exists, use it instead" echo "mount failed but genext2fs exists, use it instead"
use_genext2fs=1 use_genext2fs=1
else else
die "could not mount filesystem and genext2fs is missing" die "could not mount filesystem and genext2fs is missing"
fi fi
else else
echo "done" echo "done"
fi fi
cleanup() { cleanup() {