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