Created
February 27, 2012 09:50
-
-
Save mapkyca/1922850 to your computer and use it in GitHub Desktop.
Lenny -> Squeeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prep: | |
- apt-get update && apt-get upgrade && apt-get dist-upgrade | |
- Check for holds | |
dpkg --audit | |
dpkg --get-selections | grep hold | |
aptitude & press "g" | |
- Edit sources.list s/lenny/squeeze | |
- apt-get update NOTE: Debian docs say don't use aptitude to upgrade. | |
- apt-get upgrade to to a safe-upgrade | |
- Upgrade kernel: Requirements >=2.6.26 with CONFIG_SYSFS_DEPRECATED=n & CONFIG_INOTIFY_USER=y & CONFIG_SIGNALFD=y. Standard lenny kernel does not have that. | |
- uname -r | |
- apt-get install linux-image-2.6.26FLAVOR | |
NOTE: My install said I was already at the latest kernel, I can only assume that this means it was upgraded in the previous step OR the etch-lenny kernel patch fixed this issue. (kernel update was installed) | |
- Upgrade Grub and UDev | |
- update-grub | |
- apt-get install udev | |
NOTE: On my first server it installed a new kernel anyway, but warned of missing firmware drivers despite non-free in sources.list. To fix this: apt-get install firmware-linux. On one server I needed to install firmware-realtek as well. | |
- reboot (and pray to whatever deities you worship) | |
- NOTE: Custom kernels seem to puke at this point. I was running 2.6.37 and this puked at this stage giving me a kernel panic on boot (Kernel panic- not syncing: VFS: Unable to mount root fs on unknown-block (0,0)). If you're migrating from an old system and/or using a custom kernel you must use SATA (with PATA extensions, even though they're experimental) as the Squeeze version of UDEV assumes this (and /dev/sdxx namings), you should also have CONFIG_IDE=n. | |
I probably could sort it out, but I found just selecting the debian blessed kernel from the boot menu a hell of a lot easier. | |
- Download packages apt-get -d dist-upgrade | |
- Install apt-get dist-upgrade | |
- PROBLEMS: Unable to migrate to dependency-based boot system (http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot) | |
- There were a few scripts which could not be converted to dependency based booting | |
- Apache: Solution, PURGE as this was a hangover from pre apache2 days | |
- Webmin no LSB tags: Solution, remove since I never use it anyway | |
- sbadm : This is a server beach admin script | |
- Solution: This is basically SSH so, copy SSH header | |
- at: not installed, but left some config there so Purge | |
- mysql-server-5.0: Replaced buy 5.1 so purge | |
- libdevmapper1.02 remove as it seems to be obsolete as of etch->lenny, took with it initrd-tools (which I believe has been superseded by initramfs-tools) | |
- PURGE initrd-tools, libdevmapper1.02 | |
- Run dpkg-reconfigure sysv-rc | |
- Once this has been resolved, do a final dist-upgrade to pick up pieces. | |
- Reboot, and pray once again to the aforementioned gods | |
- If boot ok, run upgrade-from-grub-legacy | |
CLEANUP: | |
- Reinstall mysql-server (apt-get install mysql-server) for some reason the upgrade didn't do this | |
- Fix Trac *again* | |
- easy_install -U setuptools | |
- easy_install http://github.com/hvr/trac-git-plugin/tarball/trac-0.11 | |
- easy_install TracAccountManager | |
- easy_install -Z -U http://trac-hacks.org/svn/xmlrpcplugin/trunk | |
- easy_install http://trac-hacks.org/svn/httpauthplugin/trunk/ | |
- Restart apache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment