Skip to content

XNU as a loadable kernel module inside Linux (macOS personality for arm64 Linux)

C

vm-xnu-rebuild.sh: sync at the end (a VM stopped from the host lost the new collection)

Heyang Zhou26046ff32960
diff --git a/scripts/vm-xnu-rebuild.sh b/scripts/vm-xnu-rebuild.sh
index eed9124..af5891e 100755
--- a/scripts/vm-xnu-rebuild.sh
+++ b/scripts/vm-xnu-rebuild.sh
@@ -51,3 +51,4 @@ if [ -e out/kc/kc27.bin ]; then
fi
ls -la out/k27/kernel-k27.macho
sudo cp out/k27/kernel-k27.macho /lib/firmware/xnu/kernel.macho
+sync # the VM may be stopped from the host right after (tart/krunkit stop): unsynced pages of the collection would be lost