On Sunday 09 March 2003 02:29, Harry Wert wrote:
Thank you for reading this far. Now to restate my question: How do you folks modify your working system to provide an escape route in case a newer kernel install bombs?
My way to get it: 1. install lilo (thank you SuSE it is still possible) and go to yast->bootloader to choose lilo as your favourite bootloader 2. make a temporary copy of /lib/modules/2.4.19-4GB (say, 2.4.19-4GB.COPY) 3. copy vmlinuz* to vmlinuz_2.4.19-4GB* 4. copy initrd to initrd_2.4.19 (the same with initrd.shipped) 5. copy System.map-2.4.19-GB to System.map-2.4.19-4GB.COPY ********** 6. Now you are ready to create /etc/lilo.conf Mine looks like this: # Modified by YaST2. Last modification on Sun Mar 2 10:08:11 2003 boot = /dev/hda change-rules reset read-only menu-scheme = Wb:kw:Wb:Wb lba32 prompt timeout = 80 message = /boot/message image = /boot/vmlinuz label = linux root = /dev/hda2 vga = 791 initrd = /boot/initrd append = "acpi=off" password = xxx restricted image = /boot/vmlinuz_2.4.19 label = linux-2.4.19 root = /dev/hda2 vga = 791 initrd = /boot/initrd_2.4.19 append = "acpi=off" password = xxx restricted optional other = /dev/hda1 label = windows password = xxx optional image = /boot/vmlinuz.shipped label = rescue root = /dev/hda2 vga = 791 initrd = /boot/initrd.shipped append = "ide=nodma apm=off acpi=off vga=normal nosmp maxcpus=0 disableapic 3" password = xxx restricted optional image = /boot/vmlinuz_2.4.19.shipped label = rescue-2.4.19 root = /dev/hda2 vga = 791 initrd = /boot/initrd_2.4.19.shipped append = "ide=nodma apm=off acpi=off vga=normal nosmp maxcpus=0 disableapic 3" password = xxx restricted optional ******************* 7. Launch lilo to write changes to mbr - as you see at this moment both vmlinux and vmlinuz_2.4.19-4GB means the same 8. Now you can install new kernel (rpm -Uhv ...) 9. Rename /lib/modules/2.4.19-4GB.COPY to 2.4.19-4GB (old kernel modules have been deleted by rpm) 10. Rename /boot/System.map-2.4.19-GB.COPY to System.map-2.4.19-4GB 11. Launch lilo (now vmlinuz is you most recent kernel) ***************** FYI: list of files in /boot in my system: drwxr-xr-x 3 root root 4096 Mar 9 10:40 . drwxr-xr-x 21 root root 4096 Mar 8 20:17 .. -rw-r--r-- 1 root root 611546 Nov 27 02:07 System.map-2.4.19-4GB -rw-r--r-- 1 root root 632255 Feb 25 10:00 System.map-2.4.20-4GB lrwxrwxrwx 1 root root 1 Feb 26 22:00 boot -> . -rw-r--r-- 1 root root 512 Mar 2 10:05 boot.0300 -rw-r--r-- 1 root root 512 Mar 2 10:05 boot.0302 drwxr-xr-x 2 root root 4096 Feb 26 22:09 grub -rw-r--r-- 1 root root 410198 Mar 2 12:40 initrd -rw-r--r-- 1 root root 409753 Mar 2 12:40 initrd.shipped -rw-r--r-- 1 root root 414245 Mar 2 10:08 initrd_2.4.19 -rw-r--r-- 1 root root 404826 Mar 2 10:08 initrd_2.4.19.shipped -rw-r--r-- 1 root root 3759 Mar 2 10:05 lilo.log -rw------- 1 root root 168960 Mar 2 12:44 map -rw------- 1 root root 131584 Mar 2 10:05 map2 -rw-r--r-- 1 root root 83147 Mar 8 20:12 message -rwxr-xr-x 1 root root 1391878 Feb 25 10:00 vmlinux.gz -rw-r--r-- 1 root root 1169218 Feb 25 10:00 vmlinuz -rw-r--r-- 1 root root 100072 Feb 25 10:48 vmlinuz.autoconf.h -rw-r--r-- 1 root root 48891 Feb 25 10:48 vmlinuz.config -rw-r--r-- 1 root root 1169218 Feb 25 10:00 vmlinuz.shipped -rw-r--r-- 1 root root 130 Feb 25 09:58 vmlinuz.version.h -rw-r--r-- 1 root root 1146120 Nov 27 02:07 vmlinuz_2.4.19 -rw-r--r-- 1 root root 94777 Nov 27 03:25 vmlinuz_2.4.19.autoconf.h -rw-r--r-- 1 root root 46345 Nov 27 03:25 vmlinuz_2.4.19.config -rw-r--r-- 1 root root 1146120 Nov 27 02:07 vmlinuz_2.4.19.shipped -rw-r--r-- 1 root root 130 Nov 27 01:55 vmlinuz_2.4.19.version.h *************** Regards, -- Emcek emcek@poczta.onet.pl --------------r-e-k-l-a-m-a----------------- Szukasz banku bez prowizji ? mBank - zaloz konto http://epieniadze.onet.pl/mbank