summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortuftedocelot <tuftedocelot@fastmail.fm>2021-12-24 10:00:08 -0600
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-29 03:46:56 -0800
commit6dee1e91bef297474870722c4cbfd7007cf4d8ce (patch)
treebd6d187fc2125b1212a39cf908baca2bef6cbb4e
parent68e4e7923a76eea569cb05c60a1b5a3344f42a22 (diff)
downloadserenity-6dee1e91bef297474870722c4cbfd7007cf4d8ce.zip
Meta+Documentation: Don't rebuild disk image for every run on OpenBSD
-rw-r--r--Documentation/BuildInstructionsOther.md2
-rwxr-xr-xMeta/build-image-qemu.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/BuildInstructionsOther.md b/Documentation/BuildInstructionsOther.md
index 3bc1120ced..5a0490f777 100644
--- a/Documentation/BuildInstructionsOther.md
+++ b/Documentation/BuildInstructionsOther.md
@@ -88,7 +88,7 @@ apk add cmake e2fsprogs grub-bios samurai mpc1-dev mpfr-dev gmp-dev ccache rsync
## OpenBSD prerequisites
```console
-doas pkg_add bash cmake g++ gcc git gmake gmp ninja ccache rsync coreutils qemu sudo
+doas pkg_add bash cmake g++ gcc git gmake gmp ninja ccache rsync coreutils qemu sudo e2fsprogs
```
## FreeBSD prerequisites
diff --git a/Meta/build-image-qemu.sh b/Meta/build-image-qemu.sh
index 87d4560940..958c0eadf5 100755
--- a/Meta/build-image-qemu.sh
+++ b/Meta/build-image-qemu.sh
@@ -118,6 +118,7 @@ use_genext2fs=0
if [ "$(uname -s)" = "Darwin" ]; then
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/"
elif [ "$(uname -s)" = "FreeBSD" ]; then
MD=$(mdconfig _disk_image)