From 93564892bcaa4d560dd659a9415368176795516e Mon Sep 17 00:00:00 2001 From: Dave Cottlehuber Date: Thu, 21 Feb 2019 23:03:21 +0000 Subject: [PATCH] genimg: trim some fat from FreeBSD images Drew mentioned that FreeBSD is slow to start up, I suspect the DNS change below is the only one that will result in measurable changes but less processes is always better. Personally, I'd disable syslogd here too but that might be overzealous. Thoughts? I can't test the timing myself yet sorry, would love to get some reports back, especially vs linux. Depending on what people report as "slow" there may be other options, disabling TCP checksums on the virtio nic, or other sysctl tweaks. A+ Dave --- images/freebsd/genimg | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/images/freebsd/genimg b/images/freebsd/genimg index 302edd4..9de4b4c 100755 --- a/images/freebsd/genimg +++ b/images/freebsd/genimg @@ -43,11 +43,20 @@ echo 'autoboot_delay="-1"' >>/mnt/boot/loader.conf cat >>/mnt/etc/rc.conf </mnt/etc/resolv.conf tzsetup -s -C /mnt UTC @@ -57,6 +66,7 @@ PermitRootLogin yes PasswordAuthentication yes PermitEmptyPasswords yes UsePAM no +UseDNS no EOF mkdir -p /mnt/usr/local/etc/pkg/repos/ -- 2.38.5