Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do you keep you kernels available to reuse.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
linuxbum
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2003
Posts: 131
Location: USA

PostPosted: Fri Jan 09, 2004 7:30 pm    Post subject: How do you keep you kernels available to reuse. Reply with quote

Hello everybody need some ideas how you keep versions of kernel around.

My current way is I created /usr/myconfig dir. store all .config files there.
then rename complied kernels vmlinuxX.X.X then update SILO so I press one key stroke to boot different Kernel versions.

and move them to /boot after mounting of course :-)

How do you all do it ?

:mrgreen:
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Fri Jan 09, 2004 8:23 pm    Post subject: Reply with quote

i have added an small one-line command to the /etc/profile file to copy the new kernel into /boot. my /boot looks like this:
Code:
# ls -lah /boot/
total 52M
drwxr-xr-x    4 root     root         2.0K Jan  9 16:28 .
drwxr-xr-x   17 root     root         4.0K Dec 13 16:15 ..
-rw-r--r--    1 root     root          24K Dec 24 16:50 .config-2.6.0-mm1
-rw-r--r--    1 root     root          24K Nov 26 17:43 .config-2.6.0-test10-mm1
-rw-r--r--    1 root     root          24K Dec 17 19:09 .config-2.6.0-test11-mm1
-rw-r--r--    1 root     root          24K Oct 30 15:52 .config-2.6.0-test8-mm1
-rw-r--r--    1 root     root          24K Nov 13 01:20 .config-2.6.0-test9-mm2
-rw-r--r--    1 root     root          24K Nov 14 22:20 .config-2.6.0-test9-mm3
-rw-r--r--    1 root     root          24K Nov 21 22:06 .config-2.6.0-test9-mm4
-rw-r--r--    1 root     root          24K Nov 22 22:51 .config-2.6.0-test9-mm5
-rw-r--r--    1 root     root          24K Jan  9 16:28 .config-2.6.1-mm1
-rw-r--r--    1 root     root            0 Oct 25 00:18 .keep
-rw-r--r--    1 root     root         670K Dec 24 16:50 System.map-2.6.0-mm1
-rw-r--r--    1 root     root         668K Nov 26 17:43 System.map-2.6.0-test10-mm1
-rw-r--r--    1 root     root         668K Dec 17 19:09 System.map-2.6.0-test11-mm1
-rw-r--r--    1 root     root         667K Oct 30 15:52 System.map-2.6.0-test8-mm1
-rw-r--r--    1 root     root         691K Nov 13 01:20 System.map-2.6.0-test9-mm2
-rw-r--r--    1 root     root         691K Nov 14 22:20 System.map-2.6.0-test9-mm3
-rw-r--r--    1 root     root         691K Nov 21 22:06 System.map-2.6.0-test9-mm4
-rw-r--r--    1 root     root         668K Nov 22 22:51 System.map-2.6.0-test9-mm5
-rw-r--r--    1 root     root         670K Jan  9 16:28 System.map-2.6.1-mm1
lrwxrwxrwx    1 root     root            1 Oct 24 19:40 boot -> .
-rw-r--r--    1 root     root         1.4M Dec 24 16:50 bzImage-2.6.0-mm1
-rw-r--r--    1 root     root         1.4M Nov 26 17:43 bzImage-2.6.0-test10-mm1
-rw-r--r--    1 root     root         1.4M Dec 17 19:09 bzImage-2.6.0-test11-mm1
-rw-r--r--    1 root     root         1.3M Oct 30 15:53 bzImage-2.6.0-test8-mm1
-rw-r--r--    1 root     root         1.4M Nov 13 01:20 bzImage-2.6.0-test9-mm2
-rw-r--r--    1 root     root         1.4M Nov 14 22:20 bzImage-2.6.0-test9-mm3
-rw-r--r--    1 root     root         1.4M Nov 21 22:06 bzImage-2.6.0-test9-mm4
-rw-r--r--    1 root     root         1.4M Nov 22 22:51 bzImage-2.6.0-test9-mm5
-rw-r--r--    1 root     root         1.4M Jan  9 16:28 bzImage-2.6.1-mm1
drwxr-xr-x    2 root     root         1.0K Oct 26 17:25 grub
drwx------    2 root     root          12K Oct 24 19:24 lost+found
-rwxr-xr-x    1 root     root         3.8M Dec 24 16:50 vmlinux-2.6.0-mm1
-rwxr-xr-x    1 root     root         3.7M Nov 26 17:43 vmlinux-2.6.0-test10-mm1
-rwxr-xr-x    1 root     root         3.7M Dec 17 19:09 vmlinux-2.6.0-test11-mm1
-rwxr-xr-x    1 root     root         3.4M Oct 30 15:53 vmlinux-2.6.0-test8-mm1
-rwxr-xr-x    1 root     root         3.8M Nov 13 01:20 vmlinux-2.6.0-test9-mm2
-rwxr-xr-x    1 root     root         3.8M Nov 14 22:20 vmlinux-2.6.0-test9-mm3
-rwxr-xr-x    1 root     root         3.8M Nov 21 22:06 vmlinux-2.6.0-test9-mm4
-rwxr-xr-x    1 root     root         3.7M Nov 22 22:51 vmlinux-2.6.0-test9-mm5
-rwxr-xr-x    1 root     root         3.7M Jan  9 16:28 vmlinux-2.6.1-mm1


the command in /etc/profile looks like this:
Code:
alias kernlcp='if [ ! -f ./Makefile ];then echo -ne '\''\a\n\033[1;31mYou must be in the kernel directory to execute this command.\033[0;39m\n\n'\'';else export kernel_ver=$(grep -i '\''^VERSION[ ]*='\'' Makefile|sed -n '\''s/.*[ ]*=[ ]*\(.*\)/\1/gIp'\'').$(grep -i '\''^PATCHLEVEL[ ]*='\'' Makefile|sed -n '\''s/.*[ ]*=[ ]*\(.*\)/\1/gIp'\'').$(grep -i '\''^SUBLEVEL[ ]*='\'' Makefile|sed -n '\''s/.*[ ]*=[ ]*\(.*\)/\1/gIp'\'')$(grep -i '\''^EXTRAVERSION[ ]*='\'' Makefile|sed -n '\''s/.*[ ]*=[ ]*\(.*\)/\1/gIp'\'');mount /boot;for i in vmlinux System.map .config arch/i386/boot/bzImage;do cp -i ${i} /boot/${i##*/}-${kernel_ver};done;unset kernel_ver;umount /boot;fi'


cheers

SteveB
Back to top
View user's profile Send private message
linuxbum
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2003
Posts: 131
Location: USA

PostPosted: Fri Jan 09, 2004 8:25 pm    Post subject: Reply with quote

Thanks Steve
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Fri Jan 09, 2004 8:31 pm    Post subject: Reply with quote

no problem
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum