From 8680ef06e90a2bc69fadb7c117688efc2983ce6d Mon Sep 17 00:00:00 2001 From: "Qi (Keira) Zhang" Date: Tue, 31 Dec 2024 11:12:16 +0800 Subject: [PATCH] Increase kern.kstack_pages for 32bit FreeBSD (#662) Signed-off-by: Qi Zhang --- .../templates/post_install_scripts/freebsd_post_config.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux/deploy_vm/templates/post_install_scripts/freebsd_post_config.sh b/linux/deploy_vm/templates/post_install_scripts/freebsd_post_config.sh index 3898a9c8a..61f895925 100644 --- a/linux/deploy_vm/templates/post_install_scripts/freebsd_post_config.sh +++ b/linux/deploy_vm/templates/post_install_scripts/freebsd_post_config.sh @@ -133,6 +133,10 @@ sed -i '' 's/kern.geom.label.gptid.enable="0"/kern.geom.label.gptid.enable="1"/' echo 'kern.geom.label.gpt.enable="1"' >>/boot/loader.conf echo 'kern.geom.label.ufs.enable="1"' >>/boot/loader.conf echo 'kern.geom.label.ufsid.enable="1"' >>/boot/loader.conf +if [ "$machtype" != "amd64" ] && [ "$machtype" != "x86_64" ]; then + # Workaround for FreeBSD issue https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283276 + echo 'kern.kstack_pages=8' >>/boot/loader.conf +fi # Reducing boot menu delay echo "Reducing boot menu delay ..." > /dev/ttyu0