PATH_UDEV_RULES=/etc/udev/rules.d
# constants we might want to change at some point
+FNAME_PACKAGES=packages_root.conf
FNAME_UDEV_RULES_BACKLIGHT=90-backlight.rules
LOCALE=C.UTF-8
-TO_INSTALL="ack man-db ntpsec-ntpdate sudo sway tlp vim-gtk3 wmenu xwayland"
USERNAME=plom
PRINTK_LEVELS="4 4 1 7"
TLP_THRESH_START=40
# constants derived from changeables
PATH_TO_COPY="${PATH_REPO}/to_copy"
+# Assumes FNAME_PACKAGES ends with a newline, has no blank lines, and its
+# package-name lines contain no whitespace besides that newline.
+TO_INSTALL=
+while read -r LINE; do
+ case "${LINE}" in
+ '#'*) continue ;;
+ esac
+ TO_INSTALL="${TO_INSTALL} ${LINE}"
+done < "${FNAME_PACKAGES}"
+
msg 'Ensuring packages: %s' "${TO_INSTALL}"
apt-get -y update
apt-get -y install ${TO_INSTALL}