2 # Upgrade from lenny to squeeze
6 /etc/init.d/samhain stop &&
7 mv /etc/rc2.d/S19samhain /etc/rc2.d/K19samhain # and stay down
12 /etc/init.d/exim4 stop &&
13 mv /etc/rc2.d/S20exim4 /etc/rc2.d/K20exim4 # so it stays down
16 install deborphan, clean up
18 apt-get install deborphan dialog
26 echo puppet install | dpkg --set-selections &&
27 echo puppet-common install | dpkg --set-selections
29 purge removed packages
31 dpkg --get-selections | awk '$2=="deinstall" {print $1}' &&
32 echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` &&
33 echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}'
35 change sources list entries to squeeze:
37 cd /etc/apt/sources.list.d && sed -i "s#lenny#squeeze#g" debian.list
45 apt-get install locales-all
51 use dash as system shell (/bin/sh).
53 reject changes to /etc/pam.d/sudo (puppet will install a new file later anyway)
55 reject changes to /etc/munin/plugin-conf.d/munin-node (puppet will install a new file later anyway)
57 * keep local (i.e. reject (N)):
58 * all changes relating to exim (in /etc/exim4 and in logrotate)
60 * /etc/nagios/nrpe.cfg
61 * /etc/samhain/samhainrc
62 * /etc/munin/munin-node.conf
63 * /etc/logrotate.d/apache2
64 * /etc/apache2/apache2.conf
65 * /etc/apache2/ports.conf
67 update nagios.git (add host to squeeze hostgroup)
69 update dsa-puppet.git (add to squeeze list in local.yaml)
73 puppetd -t; puppetd -t; puppetd -t
75 upgrade once more (security etc)
77 apt-get update && apt-get dist-upgrade
79 if you are moving from a dsa kernel to a debian kernel, add non-free to sources list, then
81 apt-get install firmware-linux
85 apt-get install firmware-bnx2
89 dpkg --purge dhcp3-client && apt-get install isc-dhcp-client # mark as non-auto
91 Do the same for grub/grub-pc if you did upgrade-from-grub-legacy
94 upgrade-from-grub-legacy
97 apt-get install grub-pc
106 check for unneeded/obsolete packages
110 /usr/lib/nagios/plugins/dsa-check-packages
112 purge removed packages
114 dpkg --get-selections | awk '$2=="deinstall" {print $1}' &&
115 echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` &&
116 echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}'
122 re-enable exim, samhain
124 mv /etc/rc2.d/K02exim4 /etc/rc2.d/S02exim4
125 mv /etc/rc2.d/K02samhain /etc/rc2.d/S02samhain
126 env -i /etc/init.d/exim4 start
127 env -i /etc/init.d/samhain
134 ### Problems with CCISS
136 On custom kernels in squeeze it seems that udev stopped to create cciss devices, thus in /lib/udev/devices do a /dev/MAKEDEV cciss and reboot.