mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +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:
parent
319cdf4ff3
commit
951f7becec
Notes:
sideshowbarker
2024-07-17 20:59:34 +09:00
Author: https://github.com/cdfrey Commit: https://github.com/SerenityOS/serenity/commit/951f7becec7 Pull-request: https://github.com/SerenityOS/serenity/pull/11224
1 changed files with 13 additions and 13 deletions
|
@ -117,25 +117,25 @@ printf "mounting filesystem... "
|
|||
mkdir -p mnt
|
||||
use_genext2fs=0
|
||||
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
|
||||
VND=$(vnconfig _disk_image)
|
||||
mount_cmd="mount -t ext2fs "/dev/${VND}i" mnt/"
|
||||
VND=$(vnconfig _disk_image)
|
||||
mount_cmd="mount -t ext2fs "/dev/${VND}i" mnt/"
|
||||
elif [ "$(uname -s)" = "FreeBSD" ]; then
|
||||
MD=$(mdconfig _disk_image)
|
||||
mount_cmd="fuse-ext2 -o rw+,direct_io "/dev/${MD}" mnt/"
|
||||
MD=$(mdconfig _disk_image)
|
||||
mount_cmd="fuse-ext2 -o rw+,direct_io "/dev/${MD}" mnt/"
|
||||
else
|
||||
mount_cmd="mount _disk_image mnt/"
|
||||
mount_cmd="mount _disk_image mnt/"
|
||||
fi
|
||||
if ! eval "$mount_cmd"; then
|
||||
if command -v genext2fs 1>/dev/null ; then
|
||||
echo "mount failed but genext2fs exists, use it instead"
|
||||
use_genext2fs=1
|
||||
else
|
||||
die "could not mount filesystem and genext2fs is missing"
|
||||
fi
|
||||
if command -v genext2fs 1>/dev/null ; then
|
||||
echo "mount failed but genext2fs exists, use it instead"
|
||||
use_genext2fs=1
|
||||
else
|
||||
die "could not mount filesystem and genext2fs is missing"
|
||||
fi
|
||||
else
|
||||
echo "done"
|
||||
echo "done"
|
||||
fi
|
||||
|
||||
cleanup() {
|
||||
|
|
Loading…
Reference in a new issue