WORK-IN-PROGRESS, DO NOT USE
WARNING: I have not yet tested cascaded wheezy -> jessie -> stretch upgrades. As such, I do not currently recommend upgrading jessie machines that previously ran wheezy.
As of 8/25/2018, it works, but isn't seamless. Take the following steps:
Add jessie-cclub repo: echo "deb http://debian.club.cc.cmu.edu/debian/ jessie-cclub contrib" >> /etc/apt/sources.list
apt-get update
apt-get -t jessie-cclub install cclub-pre-configuration
apt-get update
- Comment out the line running passwd-update from root's crontab
DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::options::=--force-confdef -o DPkg::options::=--force-confold dist-upgrade
- Check /etc for .dpkg-dist/.ucf-dist files for configuration that is not managed by the cclub configuration packages; fold-in the Debian changes as appropriate
Take make this easier the next time, delete any .dpkg-dist/.ucf-dist files after you've confirmed there are not any changes that need to be folded in
- Check for system users that were changed/added to /etc/passwd
There were quite a few where the shell changed from /bin/sh to /bin/nologin—also some new users for systemd
Determine the differences by running diff /etc/passwd{.OLD,}
- Apply them to /etc/passwd.system
- Install the appropriate set of cclub configuration packages
VM without AFS:
- Comment out the lines rsyncing things from rsync's crontab
apt-get install cclub-xen-hvm-domu-configuration cclub-passwd-update-configuration cclub-rsync-slave
VM with AFS:
apt-get install cclub-xen-hvm-domu-configuration cclub-passwd-update-configuration cclub-afs-client-configuration
Other cases:
- YMMV!
(probably): apt-get install cclub-hardware-configuration cclub-passwd-update-configuration cclub-rsync-slave
apt-get dist-upgrade
- touch /var/lib/cclub-configuration/flags/passwd-update-configured
Copy any newly added users (in /etc/passwd or /etc/passwd.OLD) to /etc/passwd.system no longer needed with cclub-passwd-update-configuration >= 1.2
mv /etc/pam.d/login.dpkg-dist /etc/pam.d/login no longer needed with cclub-base-configuration >= 1.5
dpkg-reconfigure cclub-base-configuration no longer needed with cclub-base-configuration >= 1.5
(optional): apt-get clean
(optional): apt-get autoremove
If we're doing upgrades like this frequently, I can look into scripting parts of the process.