Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #14254

Re: Learning about the Kernal

From Jerry Peters <jerry@example.invalid>
Newsgroups comp.os.linux.misc
Subject Re: Learning about the Kernal
Date 2015-03-25 20:59 +0000
Organization A noiseless patient Spider
Message-ID <mev7jb$it0$1@dont-email.me> (permalink)
References (8 earlier) <mekkcf$evu$13@reader1.panix.com> <men7a8$d6a$1@dont-email.me> <meo7ik$n6i$1@reader1.panix.com> <mept04$ks$1@dont-email.me> <met89k$k84$8@reader1.panix.com>

Show all headers | View raw


ruben safir <dont@email.me> wrote:
> On Mon, 23 Mar 2015 20:27:48 +0000, Jerry Peters wrote:
> 
> 
>> If you're going to hack the scheduler you really need to get used to
>> trying, and perhaps breaking things.
> 
> yep, yep... that is exactly why I am asking about set ups.  
> 
> 
> 

Grub resolves the configuration at boot time unlike lilo which saves
disk addresses when you run /sbin/lilo. That means that if you use
symlinks they are resolved at *boot* time. So if you use symlinks in
grub.cfg, and change the symlink, grub will see the new kernel when it
boots. Thus you just change the symlink to point to your new kernel,
no need for update-grub. In fact, installkernel can change the symlink
for you when you do 'make install'.

So you either edit grub.cfg to add additional menuentries for your new
kernels, or you can add something like:

cat <<-EOF
	menuentry {
		kernel ...
		initrd ... ( if you're using an initrd)
		}
EOF

to the scripts in /etc/grub (I think this is correct, the update-grub
script redirects stdout to the config file it's writing).

With the symlinks there's no need to regenerate grub.cfg every time
you change the kernel, and you can keep multiple kernels around. 

I store each kernel in a directory in /boot, along with its config and
an initrd if needed. Keeps /boot relatively uncluttered and means I
can remove the kernel & everything associated with it with an rm -r
/{boot,lib/modules}/<kernel version>.

So my symlinks point to the directory and the config would contain:
	kernel /boot/test/bzImage ...
	initrd /boot/test/initrd.cgz

Where test is (currently):
lrwxrwxrwx 1 root root 6 Mar 22 15:47 /boot/test -> 3.19.2/

and /boot/3.19.2 is:
System.map  bzImage  config  version  vmlinux*

/root/bin/installkernel creates & populates the directory when I do
the 'make install' and also sets up the test symlink.

BTW, have you looked at linux/Documentation, there's a lot of useful
information in there, especially about the build process.



Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Learning about the Kernal ruben safir <ruben@mrbrklyn.com> - 2015-03-14 19:59 -0400
  Re: Learning about the Kernal Xavier Roche <xroche@free.fr.NOSPAM.invalid> - 2015-03-15 11:11 +0100
    Re: Learning about the Kernal ruben <nowhere@nowhere.nor> - 2015-03-15 21:14 +0000
      Re: Learning about the Kernal Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2015-03-16 10:02 +0200
        Re: Learning about the Kernal Ruben Safir <mrbrklyn@panix.com> - 2015-03-17 00:18 +0000
          Re: Learning about the Kernal Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2015-03-16 20:53 -0700
            Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-17 05:14 +0000
            Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-17 05:23 +0000
      Re: Learning about the Kernal Dan Espen <despen@verizon.net> - 2015-03-16 21:58 -0400
        Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-17 05:21 +0000
          Re: Learning about the Kernal Rich <rich@example.invalid> - 2015-03-17 10:51 +0000
          Re: Learning about the Kernal Dan Espen <despen@verizon.net> - 2015-03-17 09:10 -0400
            Re: Learning about the Kernal ruben safir <ruben@mrbrklyn.com> - 2015-03-17 14:12 -0400
              Re: Learning about the Kernal William Unruh <unruh@invalid.ca> - 2015-03-17 19:03 +0000
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-17 19:08 +0000
                Re: Learning about the Kernal Dan Espen <despen@verizon.net> - 2015-03-17 15:17 -0400
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-20 01:06 +0000
                Re: Learning about the Kernal Dan Espen <despen@verizon.net> - 2015-03-19 23:52 -0400
                Re: Learning about the Kernal Rich <rich@example.invalid> - 2015-03-20 10:52 +0000
                Re: Learning about the Kernal Jerry Peters <jerry@example.invalid> - 2015-03-20 20:33 +0000
                Re: Learning about the Kernal ruben safir <ruben@mrbrklyn.com> - 2015-04-20 09:48 -0400
              Re: Learning about the Kernal Dan Espen <despen@verizon.net> - 2015-03-17 15:08 -0400
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-18 03:36 +0000
                Re: Learning about the Kernal Dan Espen <despen@verizon.net> - 2015-03-18 10:09 -0400
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-20 01:04 +0000
                Re: Learning about the Kernal Rich <rich@example.invalid> - 2015-03-20 10:58 +0000
                Re: Learning about the Kernal Dan Espen <despen@verizon.net> - 2015-03-20 09:22 -0400
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-20 18:39 +0000
                Re: Learning about the Kernal Rich <rich@example.invalid> - 2015-03-20 20:04 +0000
                Re: Learning about the Kernal Dan Espen <despen@verizon.net> - 2015-03-20 21:10 -0400
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-21 05:03 +0000
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-20 18:42 +0000
                Re: Learning about the Kernal Dan Espen <despen@verizon.net> - 2015-03-20 15:31 -0400
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-21 05:13 +0000
                Re: Learning about the Kernal The Natural Philosopher <tnp@invalid.invalid> - 2015-03-21 09:13 +0000
                Re: Learning about the Kernal ruben <nowhere@nowhere.nor> - 2015-03-21 14:40 +0000
                Re: Learning about the Kernal Michael Black <et472@ncf.ca> - 2015-03-21 12:20 -0400
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-21 19:54 +0000
                Re: Learning about the Kernal Baho Utot <baho-utot@columbus.rr.com> - 2015-03-21 17:56 -0400
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-21 19:56 +0000
                Re: Learning about the Kernal Richard Kettlewell <rjk@greenend.org.uk> - 2015-03-21 16:18 +0000
          Re: Learning about the Kernal Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2015-03-17 16:10 +0200
            Re: Learning about the Kernal ruben safir <ruben@mrbrklyn.com> - 2015-03-17 14:06 -0400
              Re: Learning about the Kernal William Unruh <unruh@invalid.ca> - 2015-03-17 19:00 +0000
                Re: Learning about the Kernal Tim Watts <tw_usenet@dionic.net> - 2015-03-17 19:05 +0000
                Re: Learning about the Kernal Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2015-03-17 14:17 -0700
                Re: Learning about the Kernal William Unruh <unruh@invalid.ca> - 2015-03-19 06:04 +0000
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-21 08:45 +0000
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-21 08:20 +0000
                Re: Learning about the Kernal Rich <rich@example.invalid> - 2015-03-21 16:09 +0000
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-21 20:10 +0000
              Re: Learning about the Kernal Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2015-03-17 22:39 +0200
          Re: Learning about the Kernal Chick Tower <c.tower@deadspam.com> - 2015-03-18 03:35 +0000
            Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-21 08:47 +0000
              Re: Learning about the Kernal Jerry Peters <jerry@example.invalid> - 2015-03-21 20:19 +0000
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-21 20:30 +0000
                Re: Learning about the Kernal Jerry Peters <jerry@example.invalid> - 2015-03-22 20:05 +0000
                Re: Learning about the Kernal ruben safir <ruben@mrbrklyn.com> - 2015-03-23 01:16 -0400
                Re: Learning about the Kernal Jerry Peters <jerry@example.invalid> - 2015-03-23 20:27 +0000
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-25 02:57 +0000
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-25 02:59 +0000
                Re: Learning about the Kernal Jerry Peters <jerry@example.invalid> - 2015-03-25 20:59 +0000
                Re: Learning about the Kernal ruben safir <ruben@mrbrklyn.com> - 2015-04-20 09:44 -0400
                Re: Learning about the Kernal Aragorn <thorongil@telenet.be.invalid> - 2015-03-22 00:07 +0100
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-22 00:07 +0000
                Re: Learning about the Kernal Aragorn <thorongil@telenet.be.invalid> - 2015-03-22 01:13 +0100
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-22 03:11 +0000
                Re: Learning about the Kernal Aragorn <thorongil@telenet.be.invalid> - 2015-03-22 04:20 +0100
                Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-22 13:19 +0000
                Re: Learning about the Kernal Rich <rich@example.invalid> - 2015-03-22 15:13 +0000
                Re: Learning about the Kernal Aragorn <thorongil@telenet.be.invalid> - 2015-03-22 21:52 +0100
                Re: Learning about the Kernal Jerry Peters <jerry@example.invalid> - 2015-03-22 20:13 +0000
                Re: Learning about the Kernal Aragorn <thorongil@telenet.be.invalid> - 2015-03-22 22:01 +0100
              Re: Learning about the Kernal Chick Tower <c.tower@deadspam.com> - 2015-03-23 04:02 +0000
                Re: Learning about the Kernal Aragorn <thorongil@telenet.be.invalid> - 2015-03-23 05:13 +0100
                Re: Learning about the Kernal ruben <ceo@iran.gov> - 2015-04-12 13:03 +0000
      Re: Learning about the Kernal ruben safir <dont@email.me> - 2015-03-17 05:18 +0000
      Re: Learning about the Kernal ruben safir <ruben@mrbrklyn.com> - 2015-03-17 01:52 -0400

csiph-web