bookworm|bullseye)
repo=http://deb.debian.org/debian/
;;
+ *)
+ err "i dont know how to run with codename='$codename'"
+ return 1
+ ;;
esac
apps=($@)
set -eE -o pipefail
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" exit status: $?, PIPESTATUS: ${PIPESTATUS[*]}" >&2' ERR
-readonly this_file; this_file="$(readlink -f -- "${BASH_SOURCE[0]}")"
+readonly this_file="$(readlink -f -- "${BASH_SOURCE[0]}")"
readonly this_dir="${this_file%/*}"
cd "$this_dir"
./distro-begin
sudo chattr +C $subvol
fi
- first_root_crypt=$(awk '$2 == "/" {print $1}' /etc/mtab)
+ first_root_crypt=$(awk '$2 == "/mnt/root" {print $1}' /etc/mtab)
mopts=
if (( $(nproc) > 2)); then
####### begin misc packages ###########
-# some $d_host switching commands. edit partition script. edit this. edit distro-begin.
+## Notes for changing $d_host. edit partition script. edit this. edit distro-begin.
# cd /a/c
# mkmv machine_specific/kd/filesystem/etc/btrbk/* machine_specific/frodo/filesystem/etc/btrbk
# mv machine_specific/kd/filesystem/etc/systemd/system/btrbkrust* machine_specific/frodo/filesystem/etc/systemd/system
# for testing firefox specific issues
case $distro in
trisquel|ubuntu)
- schroot_name=bookworm
+ bookworm
m mkschroot -s /a/bin/fai/fai/config/files/etc/apt/sources.list.d/bookworm.list/BOOKWORM_FREE \
- $schroot_name debian chromium fonts-noto-color-emoji fonts-recommended locales
+ bookworm bookworm chromium fonts-noto-color-emoji fonts-recommended locales
sd /nocow/schroot/$schroot_name/etc/locale.gen <<'EOF'
en_US.UTF-8 UTF-8
EOF
# packages I once used before and liked, but don\'t want installed now for
# various reasons:
-# python-sqlite is used for offlineimap
# lxappearance python-sqlite dolphin paman dconf-editor
fi
### end timetrap setup
-# leftover cleanup for t9
-pu resolvconf
+# leftover cleanup, t12 timeframe
+pu offlineimap
# I have no use for avahi,
if [[ ! -e /etc/apt/sources.list.d/pgdg.sources ]]; then
pi postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y noble
- pi postgresql-17
+ pi postgresql-18
sudo -u postgres createuser -d iank
sudo usermod -a -G postgres iank
fi
local file line
while read -r line; do
file="$1"
- grep -xFq "$line" "$file" || tee -a "$file"<<<"$line"
+ if ! grep -xFq "$line" "$file"; then
+ echo "+ tee -a '$file'"
+ tee -a "$file"<<<"$line"
+ fi
done
}
# debug: echo when $verbose
### this is duplicated in check-subvol-stale
dev=$(sed -rn "s,^\s*([^#]\S*)\s+/$vol\s.*,\1,p" /etc/fstab /etc/mtab|head -n1)
# example dev: /dev/mapper/crypt-vgDISK_BY_ID_NAME-root
- d dev=$dev
+ d vol=$vol dev=$dev
# $devx are the devices of the btrfs filesystem. they include $dev.
#
# Note, we can't just use $d in this sed because it might not be mounted. We do this loop
# Input vars: none
setup-fstab() {
local root_dev o_dev crypt_dev mopts dev f fa
- root_dev=$(awk '$2 == "/" {print $1}' /etc/mtab)
+ root_dev=$(awk '$2 == "/mnt/root" {print $1}' /etc/mtab)
mapper-dev root_dev
o_dev=$(awk '$2 == "/mnt/o" {print $1}' /etc/mtab)
mapper-dev o_dev
# old file. remove when all hosts updated, 2023-09-11
rm -fv /etc/exim4/conf.d/clamav_data_acl
+pi-nostart clamav
+
m usermod -a -G Debian-exim clamav
u /etc/systemd/system/clamav-daemon.service.d/fix.conf <<EOF
# optimization, this only needs to be run once
if [[ ! -e /var/lib/prometheus/node-exporter/exim_paniclog.prom ]]; then
sysd-prom-fail-install epanicclean
- sre enable epanicclean
+ sre epanicclean
fi
case $HOSTNAME in
nyancat
nzbget
obs-studio
- offlineimap
oathtool
opendkim-tools
p7zip-full