From b31b04aa97927ccf6be8ffc923d66c8674a1ec43 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Sat, 15 Aug 2026 00:18:15 +0300 Subject: [PATCH] update netbsd-deps.sh --- kbuildx/scripts/freebsd-deps.sh | 7 +++++-- kbuildx/scripts/netbsd-deps.sh | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/kbuildx/scripts/freebsd-deps.sh b/kbuildx/scripts/freebsd-deps.sh index 59a9a18..3f5fdff 100755 --- a/kbuildx/scripts/freebsd-deps.sh +++ b/kbuildx/scripts/freebsd-deps.sh @@ -8,12 +8,15 @@ if ! mount | grep -q ' /root/kbuildx '; then mount "$data_disk" /root/kbuildx else printf '%s\n' 'Formatting FreeBSD build disk' - newfs -b 32768 -f 4096 -i 16384 "$data_disk" + # Optimisé pour FreeBSD sous libkrun : UFS2 (par défaut), inodes réduits, espace max + newfs -U -b 16384 -f 2048 -i 32768 -m 1 "$data_disk" printf '%s\n' 'Mounting new FreeBSD build disk' - mount "$data_disk" /root/kbuildx + # Montage avec support des Soft Updates et async pour booster les builds + mount -o async "$data_disk" /root/kbuildx fi fi + marker=/var/db/kbuildx-root-grown if [ ! -e "$marker" ]; then printf '%s\n' 'Growing FreeBSD root filesystem to fill the virtual disk' diff --git a/kbuildx/scripts/netbsd-deps.sh b/kbuildx/scripts/netbsd-deps.sh index 82c50c9..5a47540 100755 --- a/kbuildx/scripts/netbsd-deps.sh +++ b/kbuildx/scripts/netbsd-deps.sh @@ -11,7 +11,8 @@ if ! mount | grep -q ' /root/kbuildx '; then mount "$data_disk" /root/kbuildx else printf '%s\n' 'Formatting NetBSD build disk' - newfs -b 32768 -f 4096 -i 16384 "$data_disk" + # Optimisé pour libkrun : UFS2, blocs standards, densité d'inodes équilibrée + newfs -O 2 -b 16384 -f 2048 -i 32768 -m 1 "$data_disk" printf '%s\n' 'Mounting new NetBSD build disk' mount "$data_disk" /root/kbuildx fi -- 2.51.2