d-i netcfg/link_wait_timeout string 3
d-i netcfg/choose_interface select auto
-d-i netcfg/wireless_show_essids select kadatheron
#d-i netcfg/wireless_essid string kadatheron
+#d-i netcfg/wireless_essid seen true
+d-i netcfg/wireless_show_essids select kadatheron
#d-i netcfg/wireless_show_essids seen true
+#d-i netcfg/confirm_essid boolean true
+#d-i netcfg/confirm_essid seen true
d-i netcfg/wireless_security_type select wpa
+d-i netcfg/wireless_wpa string REPLACE_WITH_WIFI_PASSWORD
+d-i netcfg/wireless_wpa seen true
d-i netcfg/use_autoconfig boolean true
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i passwd/root-login boolean true
+d-i passwd/root-password password REPLACE_WITH_ROOT_PASSWORD
+d-i passwd/root-password-again password REPLACE_WITH_ROOT_PASSWORD
user-setup-udeb passwd/make-user boolean false
#d-i partman-auto/method string crypto
d-i apt-setup/use_mirror boolean true
d-i mirror/protocol string http
-d-i mirror/http/proxy string
-d-i mirror/http/countries select US
-d-i mirror/http/mirror select deb.debian.org
+d-i mirror/http/proxy string
+#d-i mirror/http/countries select US
+#d-i mirror/http/countries seen true
+#d-i mirror/http/mirror select deb.debian.org
#d-i mirror/http/hostname string http.us.debian.org
d-i apt-setup/enable-source-repositories true
d-i apt-setup/non-free-firmware boolean true
--- /dev/null
+INSTALLER_VERSION=12.10.0
+++ /dev/null
-. lib/abort
-
-abort_if_command_unknown() {
- if ! which "$1" > /dev/null; then
- abort "Expected command unavailable: ${1}."
- fi
-}
+++ /dev/null
-. lib/abort
-
-abort_if_not_user() {
- if [ "$(whoami)" != "$1" ]; then
- abort "Must be run as ${1}."
- fi
-}
+++ /dev/null
-. lib/abort
-
-abort_if_offline() {
- if ! ping -c1 -W2 1.1.1.1 > /dev/null 2>&1; then
- abort 'Must be run online.'
- fi
-}
+++ /dev/null
-FILENAME_PRESEED_CFG=preseed.cfg
-PATH_PRESEED_CFG="../${FILENAME_PRESEED_CFG}"
+++ /dev/null
-. lib/constants_user
-PATH_REL_SSH=.ssh
-PATH_USER_SSH="${PATH_USER_HOME}/${PATH_REL_SSH}"
+++ /dev/null
-. lib/abort
-
-expect_n_args() {
- _N_MIN_ARGS="$1"
- _N_MAX_ARGS="$2"
- _USAGE="$3"
- shift 3
- _ABORT_MSG=
- if [ "$#" -lt "${_N_MIN_ARGS}" ]; then
- _ABORT_MSG="missing arguments (got $# instead of ${_N_MAX_ARGS})."
- elif [ "$#" -gt "${_N_MAX_ARGS}" ]; then
- shift "${_N_MAX_ARGS}"
- _ABORT_MSG="unexpected arguments beyond expected number (${_N_MAX_ARGS}): $@"
- fi
- if [ ! -z "${_ABORT_MSG}" ]; then
- if [ ! -z "${_USAGE}" ]; then
- _ABORT_MSG="${_ABORT_MSG}\nExpected arguments: ${_USAGE}"
- fi
- abort "Aborting due to ${_ABORT_MSG}"
- fi
-}
+++ /dev/null
-. lib/abort
-
-get_mountable_device_path() {
- _PATH_DEV="/dev/$1"
- if [ ! -b "${_PATH_DEV}" ]; then
- abort "No block device at ${_PATH_DEV}."
- elif [ $(mount | grep -E "^${_PATH_DEV}" | wc -l) -gt 0 ]; then
- abort "${_PATH_DEV} already mounted."
- fi
- printf "${_PATH_DEV}"
-}
+++ /dev/null
-#!/bin/sh
-# based on <https://wiki.debian.org/DebianInstaller/WritableUSBStick>
-set -e
-cd $(dirname "$0")
-. lib/abort
-. lib/abort_if_command_unknown
-. lib/abort_if_not_user
-. lib/abort_if_offline
-. lib/constants_installer
-. lib/expect_n_args
-. lib/get_mountable_device_path
-
-INSTALLER_VERSION=12.10.0
-PATH_MNT_ISO=/mnt/iso
-
-expect_n_args 1 1 'DEVICE (e.g. "sdb")' $@
-abort_if_not_user root
-abort_if_offline
-abort_if_command_unknown mkfs.vfat
-abort_if_command_unknown parted
-abort_if_command_unknown rsync
-abort_if_command_unknown wget
-
-PATH_STICK="$(get_mountable_device_path $1)"
-
-FILENAME_ISO="debian-${INSTALLER_VERSION}-amd64-netinst.iso"
-echo "Retrieving ${FILENAME_ISO}."
-URL_ISO="https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/${FILENAME_ISO}"
-PATH_ISO="/tmp/${FILENAME_ISO}"
-wget --output-document "${PATH_ISO}" "${URL_ISO}"
-
-echo "Preparing partition/filesystem on ${PATH_STICK}."
-parted --script "${PATH_STICK}" mklabel msdos
-parted --script "${PATH_STICK}" mkpart primary fat32 0% 100%
-PATH_PARTITION="${PATH_STICK}1"
-mkfs.vfat "${PATH_PARTITION}"
-
-echo "Mounting ${PATH_MNT_ISO} and ${PATH_MNT_STICK}."
-mkdir -p "${PATH_MNT_ISO}" "${PATH_MNT_STICK}"
-mount "${PATH_PARTITION}" "${PATH_MNT_STICK}"
-mount -o loop "${PATH_ISO}" "${PATH_MNT_ISO}"
-do_umounts() {
- set +e
- echo "Unmounting ${PATH_MNT_ISO}"
- umount "${PATH_MNT_ISO}"
- echo "Unmounting ${PATH_MNT_STICK}"
- umount "${PATH_MNT_STICK}"
- set -e
-}
-trap do_umounts EXIT INT TERM
-
-echo "Copying contents of ${PATH_MNT_ISO} to ${PATH_MNT_STICK}/."
-PATH_RSYNC_ERRORS=/tmp/rsync_errors
-set +e
-rsync -a "${PATH_MNT_ISO}/" "${PATH_MNT_STICK}/" 2> "${PATH_RSYNC_ERRORS}"
-RESULT=$?
-set -e
-if [ "${RESULT}" != "0" ]; then
- echo 'rsync errors:'
- cat "${PATH_RSYNC_ERRORS}"
- echo 'rsync encountered errors, see above – continue? (Y/N)'
- rm "${PATH_RSYNC_ERRORS}"
- read ANSWER
- FIRST_CHAR=$(echo "${ANSWER}" | cut -c1)
- if ! [ "${FIRST_CHAR}" = 'y' -o "${FIRST_CHAR}" = 'Y' ]; then
- abort 'as requested'
- fi
-fi
-
-echo "Installing preseed file."
-cp "${PATH_PRESEED_CFG}" "${PATH_MNT_STICK}/"
-sed --in-place 's/ --- / --- preseed\/file=\/cdrom\/'"${FILENAME_PRESEED_CFG}"' /g' "${PATH_MNT_STICK}/boot/grub/grub.cfg"
-
-rm "${PATH_ISO}"
-echo "Done!"
+++ /dev/null
-#!/bin/sh
-set -e
-cd $(dirname "$0")
-. lib/abort_if_command_unknown
-. lib/constants_installer
-. lib/expect_n_args
-. lib/get_mountable_device_path
-
-expect_n_args 1 1 'DEVICE (e.g. "sdb")' $@
-abort_if_command_unknown pmount
-
-DEVICE_NAME="$1"
-PATH_DEVICE="$(get_mountable_device_path ${DEVICE_NAME})"
-PATH_MOUNTED="/media/$1"
-echo "Mounting ${PATH_DEVICE} …"
-pmount "${DEVICE_NAME}"
-trap "echo 'Unmounting '${PATH_DEVICE}; pumount ${DEVICE_NAME}" EXIT INT TERM
-echo "Copying ${PATH_PRESEED_CFG} …"
-cp "${PATH_PRESEED_CFG}" "${PATH_MOUNTED}/"
--- /dev/null
+../../../scripts/lib/expect_n_args
\ No newline at end of file
--- /dev/null
+../bookworm/preseed.cfg
\ No newline at end of file
--- /dev/null
+. lib/abort
+
+abort_if_command_unknown() {
+ if ! which "$1" > /dev/null; then
+ abort "Expected command unavailable: ${1}."
+ fi
+}
+++ /dev/null
-../../../bookworm/scripts/lib/abort_if_not_user
\ No newline at end of file
--- /dev/null
+. lib/abort
+
+abort_if_not_user() {
+ if [ "$(whoami)" != "$1" ]; then
+ abort "Must be run as ${1}."
+ fi
+}
+++ /dev/null
-../../../bookworm/scripts/lib/abort_if_offline
\ No newline at end of file
--- /dev/null
+. lib/abort
+
+abort_if_offline() {
+ if ! ping -c1 -W2 1.1.1.1 > /dev/null 2>&1; then
+ abort 'Must be run online.'
+ fi
+}
--- /dev/null
+FILENAME_PRESEED_CFG=preseed.cfg
+PATH_PRESEED_CFG="../${FILENAME_PRESEED_CFG}"
+++ /dev/null
-../../../bookworm/scripts/lib/constants_ssh
\ No newline at end of file
--- /dev/null
+. lib/constants_user
+PATH_REL_SSH=.ssh
+PATH_USER_SSH="${PATH_USER_HOME}/${PATH_REL_SSH}"
+++ /dev/null
-../../../bookworm/scripts/lib/expect_n_args
\ No newline at end of file
--- /dev/null
+. lib/abort
+
+expect_n_args() {
+ _N_MIN_ARGS="$1"
+ _N_MAX_ARGS="$2"
+ _USAGE="$3"
+ shift 3
+ _ABORT_MSG=
+ if [ "$#" -lt "${_N_MIN_ARGS}" ]; then
+ _ABORT_MSG="missing arguments (got $# instead of ${_N_MAX_ARGS})."
+ elif [ "$#" -gt "${_N_MAX_ARGS}" ]; then
+ shift "${_N_MAX_ARGS}"
+ _ABORT_MSG="unexpected arguments beyond expected number (${_N_MAX_ARGS}): $@"
+ fi
+ if [ ! -z "${_ABORT_MSG}" ]; then
+ if [ ! -z "${_USAGE}" ]; then
+ _ABORT_MSG="${_ABORT_MSG}\nExpected arguments: ${_USAGE}"
+ fi
+ abort "Aborting due to ${_ABORT_MSG}"
+ fi
+}
--- /dev/null
+. lib/abort
+
+get_mountable_device_path() {
+ _PATH_DEV="/dev/$1"
+ if [ ! -b "${_PATH_DEV}" ]; then
+ abort "No block device at ${_PATH_DEV}."
+ elif [ $(mount | grep -E "^${_PATH_DEV}" | wc -l) -gt 0 ]; then
+ abort "${_PATH_DEV} already mounted."
+ fi
+ printf "${_PATH_DEV}"
+}
--- /dev/null
+#!/bin/sh
+# based on <https://wiki.debian.org/DebianInstaller/WritableUSBStick>
+set -e
+cd $(dirname "$0")
+. lib/INSTALLER_VERSION
+. lib/abort
+. lib/abort_if_command_unknown
+. lib/abort_if_not_user
+. lib/abort_if_offline
+. lib/constants_installer
+. lib/expect_n_args
+. lib/get_mountable_device_path
+
+expect_n_args 1 1 'DEVICE (e.g. "sdb")' $@
+abort_if_not_user root
+abort_if_offline
+abort_if_command_unknown mkfs.vfat
+abort_if_command_unknown parted
+abort_if_command_unknown rsync
+abort_if_command_unknown wget
+PATH_STICK="$(get_mountable_device_path $1)"
+
+PATH_MNT_ISO=/mnt/iso
+FILENAME_ISO="debian-${INSTALLER_VERSION}-amd64-netinst.iso"
+echo "Retrieving ${FILENAME_ISO}."
+URL_ISO="https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/${FILENAME_ISO}"
+PATH_ISO="/tmp/${FILENAME_ISO}"
+wget --output-document "${PATH_ISO}" "${URL_ISO}"
+
+echo "Preparing partition/filesystem on ${PATH_STICK}."
+parted --script "${PATH_STICK}" mklabel msdos
+parted --script "${PATH_STICK}" mkpart primary fat32 0% 100%
+PATH_PARTITION="${PATH_STICK}1"
+mkfs.vfat "${PATH_PARTITION}"
+
+echo "Mounting ${PATH_MNT_ISO} and ${PATH_MNT_STICK}."
+mkdir -p "${PATH_MNT_ISO}" "${PATH_MNT_STICK}"
+mount "${PATH_PARTITION}" "${PATH_MNT_STICK}"
+mount -o loop "${PATH_ISO}" "${PATH_MNT_ISO}"
+do_umounts() {
+ set +e
+ echo "Unmounting ${PATH_MNT_ISO}"
+ umount "${PATH_MNT_ISO}"
+ echo "Unmounting ${PATH_MNT_STICK}"
+ umount "${PATH_MNT_STICK}"
+ set -e
+}
+trap do_umounts EXIT INT TERM
+
+echo "Copying contents of ${PATH_MNT_ISO} to ${PATH_MNT_STICK}/."
+PATH_RSYNC_ERRORS=/tmp/rsync_errors
+set +e
+rsync -a "${PATH_MNT_ISO}/" "${PATH_MNT_STICK}/" 2> "${PATH_RSYNC_ERRORS}"
+RESULT=$?
+set -e
+if [ "${RESULT}" != "0" ]; then
+ echo 'rsync errors:'
+ cat "${PATH_RSYNC_ERRORS}"
+ echo 'rsync encountered errors, see above – continue? (Y/N)'
+ rm "${PATH_RSYNC_ERRORS}"
+ read ANSWER
+ FIRST_CHAR=$(echo "${ANSWER}" | cut -c1)
+ if ! [ "${FIRST_CHAR}" = 'y' -o "${FIRST_CHAR}" = 'Y' ]; then
+ abort 'as requested'
+ fi
+fi
+
+echo "Installing preseed file."
+cp "${PATH_PRESEED_CFG}" "${PATH_MNT_STICK}/"
+sed --in-place 's/ --- / --- preseed\/file=\/cdrom\/'"${FILENAME_PRESEED_CFG}"' /g' "${PATH_MNT_STICK}/boot/grub/grub.cfg"
+
+rm "${PATH_ISO}"
+echo "Done!"
--- /dev/null
+#!/bin/sh
+set -e
+cd $(dirname "$0")
+. lib/abort_if_command_unknown
+. lib/constants_installer
+. lib/expect_n_args
+. lib/get_mountable_device_path
+
+expect_n_args 1 1 'DEVICE (e.g. "sdb")' $@
+abort_if_command_unknown pmount
+
+DEVICE_NAME="$1"
+PATH_DEVICE="$(get_mountable_device_path ${DEVICE_NAME})"
+PATH_MOUNTED="/media/$1"
+echo "Mounting ${PATH_DEVICE} …"
+pmount "${DEVICE_NAME}"
+trap "echo 'Unmounting '${PATH_DEVICE}; pumount ${DEVICE_NAME}" EXIT INT TERM
+echo "Copying ${PATH_PRESEED_CFG} …"
+cp "${PATH_PRESEED_CFG}" "${PATH_MOUNTED}/"