From: Ian Kelling Date: Tue, 24 Nov 2020 19:00:19 +0000 (-0500) Subject: minor fixes and improvements X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=53db7c23cb11661c98a08d69295bb315c392003b;p=automated-distro-installer minor fixes and improvements --- diff --git a/fai/config/hooks/partition.DEFAULT b/fai/config/hooks/partition.DEFAULT index ebd3866..7c88c74 100755 --- a/fai/config/hooks/partition.DEFAULT +++ b/fai/config/hooks/partition.DEFAULT @@ -153,6 +153,9 @@ else wipe=true fi +if ((`nproc` > 2)); then + mopts=,compress=zstd +fi declare -A disk_excludes if ! ifclass USE_MOUNTED; then @@ -584,8 +587,8 @@ EOF else # note, fai creates the mountpoints listed here cat > /tmp/fai/fstab <$tmpfile1 +# this can fail if we need an apt update +chroot $FAI_ROOT /usr/bin/apt-cache policy >$tmpfile1 ||: fcopy -riBM /etc/apt tmpfile2=$(mktemp) chroot $FAI_ROOT /usr/bin/apt-cache policy >$tmpfile2 diff --git a/pxe-server b/pxe-server index d40751e..3623cc8 100755 --- a/pxe-server +++ b/pxe-server @@ -163,7 +163,7 @@ ack-wait() { if $fsf; then wait_cmd="ssh tarantula.office.fsf.org tail -n0 -f /var/log/syslog" else - wait_cmd="ssh wrt logread -f" + wait_cmd="ssh cmc logread -f" fi wait_count=$1 if [[ $host ]]; then @@ -203,7 +203,7 @@ EOF else e "updating dnsmasq.conf:" m $cmd - ${cmd:-:}|ssh wrt "dd of=/etc/dnsmasq-dhcpopts.conf; /etc/init.d/dnsmasq reload + ${cmd:-:}|ssh cmc "dd of=/etc/dnsmasq-dhcpopts.conf; /etc/init.d/dnsmasq reload $([[ $type == arch || $type == parabola ]] && echo archlike-pxe-mount)" fi } diff --git a/wrt-setup-local b/wrt-setup-local index 17fb9d2..4cad00c 100755 --- a/wrt-setup-local +++ b/wrt-setup-local @@ -483,7 +483,7 @@ config redirect option src wan option src_dport 2202 option dest_port 22 - option dest_ip $l.8 + option dest_ip $l.2 option dest lan config rule option src wan @@ -571,7 +571,7 @@ config redirect option src wan option src_dport 80 option dest lan - option dest_ip $l.8 + option dest_ip $l.2 option proto tcp config rule option src wan @@ -584,7 +584,7 @@ config redirect option src wan option src_dport 443 option dest lan - option dest_ip $l.8 + option dest_ip $l.2 option proto tcp config rule option src wan @@ -677,8 +677,8 @@ EOF case $hostname in cmc) v cedit host /etc/hosts <