2 # Upgrade from lenny to squeeze
8 touch NO-DAEMON-PLEASE EXIT-DAEMON-PLEASE && exit
10 now wait for the buildd to quit
14 /etc/init.d/samhain stop &&
15 mv /etc/rc2.d/S19samhain /etc/rc2.d/K19samhain # and stay down
20 /etc/init.d/exim4 stop &&
21 mv /etc/rc2.d/S20exim4 /etc/rc2.d/K20exim4 # so it stays down
24 install deborphan, clean up
26 apt-get install deborphan dialog
34 echo puppet install | dpkg --set-selections &&
35 echo puppet-common install | dpkg --set-selections
37 purge removed packages
39 dpkg --get-selections | awk '$2=="deinstall" {print $1}' &&
40 echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` &&
41 echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}'
43 change sources list entries to squeeze:
45 cd /etc/apt/sources.list.d && sed -i "s#lenny#squeeze#g" debian.list
53 apt-get install locales-all apt dpkg
59 use dash as system shell (/bin/sh).
61 reject changes to /etc/pam.d/sudo (puppet will install a new file later anyway)
63 reject changes to /etc/munin/plugin-conf.d/munin-node (puppet will install a new file later anyway)
65 * keep local (i.e. reject (N)):
66 * all changes relating to exim (in /etc/exim4 and in logrotate)
68 * /etc/nagios/nrpe.cfg
69 * /etc/samhain/samhainrc
70 * /etc/munin/munin-node.conf
71 * /etc/logrotate.d/apache2
72 * /etc/apache2/apache2.conf
73 * /etc/apache2/ports.conf
75 update nagios.git (add host to squeeze hostgroup)
77 update dsa-puppet.git (add to squeeze list in local.yaml)
81 puppetd -t; puppetd -t; puppetd -t
83 upgrade once more (security etc)
85 apt-get update && apt-get dist-upgrade
87 if you are moving from a dsa kernel to a debian kernel, add non-free to sources list, then
89 apt-get install firmware-linux
93 apt-get install firmware-bnx2
95 if you are an nfs client, make sure to load the module before boot completes:
97 echo nfs >> /etc/modules
99 if you are an autofs node, make sure to load the module before boot completes:
101 echo autofs4 >> /etc/modules
103 These last two are because autofs in particular lazy loads the modules, and it
104 will happen after we've disabled module loading.
108 dpkg --purge dhcp3-client && apt-get install isc-dhcp-client # mark as non-auto
110 Do the same for grub/grub-pc if you did upgrade-from-grub-legacy
113 upgrade-from-grub-legacy
115 apt-get purge grub &&
116 apt-get install grub-pc
125 check for unneeded/obsolete packages
129 /usr/lib/nagios/plugins/dsa-check-packages
131 purge removed packages
133 dpkg --get-selections | awk '$2=="deinstall" {print $1}' &&
134 echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` &&
135 echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}'
137 purge cruft that upgrade doesn't remove
139 apt-get remove --purge emacs22-common libxmlrpc-ruby libcap1 emacs22-nox emacs22-bin-common libvolume-id0 gcc-4.2-base ifenslave libopenssl-ruby1.8
145 re-enable exim, samhain
147 mv /etc/rc2.d/K02exim4 /etc/rc2.d/S02exim4
148 mv /etc/rc2.d/K02samhain /etc/rc2.d/S02samhain
149 env -i /etc/init.d/exim4 start
150 env -i /etc/init.d/samhain start
157 ### Problems with CCISS
159 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.