upgrade_from_older_release() {
# Upgrade system to calling context's Debian release.
# Caution: Don't expect any customized /etc files to surivive this!
- path_sources_list='/etc/apt/sources.list'
+ path_sources_list='/apt/sources.list'
apt update
apt -y -o Dpkg::Options::='--force-confnew' upgrade
apt -y -o Dpkg::Options::='--force-confnew' full-upgrade
- cp "../etc/all${path_sources_list}" "${path_sources_list}"
+ cp "../etc/all${path_sources_list}" "/etc${path_sources_list}"
apt clean
apt update
apt -y -o Dpkg::Options::='--force-confnew' upgrade
upgrade_from_older_release
-# properly apt system
+# properly configure and apt system
for root in "${PATH_MANY}" '..'; do
copy_dirtree "${root}${PATH_REL_ETC}" '/etc' all raspi
done