DragonFlyBSD Kernel Audit
DF-2946 / run.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-2946 run — host-side orchestration (single-tenant QEMU guest).
set -x
dfbsd-qemu/vm.sh status                          # guest must be up, clean
dfbsd-qemu/vm.sh run_root 'cp /boot/loader.conf /boot/loader.conf.df2946bak && printf "kern.stathz=\"0\"\n" >> /boot/loader.conf && tail -2 /boot/loader.conf && sync'
dfbsd-qemu/vm.sh run_root 'shutdown -r now'      # reboot into the planted tunable
sleep 75
dfbsd-qemu/vm.sh status                          # expect: down (never reaches ssh)
grep -n "Fatal trap\|Stopped at\|idiv" dfbsd-qemu/boot.log
dfbsd-qemu/vm.sh reset with-src                  # leave guest clean for the next run