public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  Question kernel upgrades for dracut users
@ 2012-01-09  0:34 Dale
  2012-01-09  1:08 ` Hinnerk van Bruinehsen
  0 siblings, 1 reply; 6+ messages in thread
From: Dale @ 2012-01-09  0:34 UTC (permalink / raw
  To: gentoo-user

Howdy,

I'm about to upgrade my kernel.  Do I have to update the init thingy too 
or should it work without updating with each kernel upgrade?  I would be 
going from a 3.1.5 to a 3.2.0-r1.

While I am at it, I version my bzImages.  Can I version my init thinys 
too?  Have one for each version of kernel in other words? That would be 
assuming I need to have it updated as asked above.

Thanks.

Dale

:-)  :-)


-- 
I am only responsible for what I said ... Not for what you understood or how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user]  Question kernel upgrades for dracut users
  2012-01-09  0:34 [gentoo-user] Question kernel upgrades for dracut users Dale
@ 2012-01-09  1:08 ` Hinnerk van Bruinehsen
  2012-01-09  1:47   ` Dale
  0 siblings, 1 reply; 6+ messages in thread
From: Hinnerk van Bruinehsen @ 2012-01-09  1:08 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09.01.2012 01:34, Dale wrote:
> Howdy,
> 
> I'm about to upgrade my kernel.  Do I have to update the init
> thingy too or should it work without updating with each kernel
> upgrade?  I would be going from a 3.1.5 to a 3.2.0-r1.
> 
> While I am at it, I version my bzImages.  Can I version my init
> thinys too?  Have one for each version of kernel in other words?
> That would be assuming I need to have it updated as asked above.
> 
> Thanks.
> 
> Dale
> 
> :-)  :-)
> 
> 
Hi Dale,

You can use your old "init thingy" if you don't need any modules
inside it. The other stuff normally doesn't change.
Since most setups use modules, you could experience troubles...

The other way would be - as you already proposed - to create an "init
thingy" per kernel, eg initramfs-3.2.0-r1.
If you use grub2 the grub2-mkconfig script searches for these
(matching the name for your kernel image) and normally it works out of
the box.
FOr grub legacy (and lilo, i assume) you would need to make matching
entries manually.

With kind regards,

Hinnerk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPCj4LAAoJEJwwOFaNFkYcA80IAIuYdR8nBiEKdZnUj5TyT/Oz
/oYdw7Kn8bwqsMvBMF8WhEbQlwzy/W/7QaMhU1MOUjFHHHkcFkNe6240gfkbhEEg
J52xj2vsUeT9YjgWEcrhmbFjZi3QNa9NxqVqpEXTFotfKcrX5ym0wdWQ7sW5VhHZ
a4TNtoTu/Kt0pCjyi9ex9j3s1iJKxGG3vwJPrPwT3cc7+1adOE53rgpwjl9avklD
IL72XmhDrii/C3Im78TqrqBZ1fjjRgEmzwGmdBp2Hduk7w5iEW5dXh4nGq/4+8Xi
C1/o+y8acC1+IXRJBbAGMSoVdkmU9difo33CtnjMyjwPjHpkq16TWGj0w12eD8s=
=lP1r
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user]  Question kernel upgrades for dracut users
  2012-01-09  1:08 ` Hinnerk van Bruinehsen
@ 2012-01-09  1:47   ` Dale
  2012-01-09  9:01     ` Hinnerk van Bruinehsen
  0 siblings, 1 reply; 6+ messages in thread
From: Dale @ 2012-01-09  1:47 UTC (permalink / raw
  To: gentoo-user

Hinnerk van Bruinehsen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 09.01.2012 01:34, Dale wrote:
>> Howdy,
>>
>> I'm about to upgrade my kernel.  Do I have to update the init
>> thingy too or should it work without updating with each kernel
>> upgrade?  I would be going from a 3.1.5 to a 3.2.0-r1.
>>
>> While I am at it, I version my bzImages.  Can I version my init
>> thinys too?  Have one for each version of kernel in other words?
>> That would be assuming I need to have it updated as asked above.
>>
>> Thanks.
>>
>> Dale
>>
>> :-)  :-)
>>
>>
> Hi Dale,
>
> You can use your old "init thingy" if you don't need any modules
> inside it. The other stuff normally doesn't change.
> Since most setups use modules, you could experience troubles...
>
> The other way would be - as you already proposed - to create an "init
> thingy" per kernel, eg initramfs-3.2.0-r1.
> If you use grub2 the grub2-mkconfig script searches for these
> (matching the name for your kernel image) and normally it works out of
> the box.
> FOr grub legacy (and lilo, i assume) you would need to make matching
> entries manually.
>
> With kind regards,
>
> Hinnerk
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.18 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJPCj4LAAoJEJwwOFaNFkYcA80IAIuYdR8nBiEKdZnUj5TyT/Oz
> /oYdw7Kn8bwqsMvBMF8WhEbQlwzy/W/7QaMhU1MOUjFHHHkcFkNe6240gfkbhEEg
> J52xj2vsUeT9YjgWEcrhmbFjZi3QNa9NxqVqpEXTFotfKcrX5ym0wdWQ7sW5VhHZ
> a4TNtoTu/Kt0pCjyi9ex9j3s1iJKxGG3vwJPrPwT3cc7+1adOE53rgpwjl9avklD
> IL72XmhDrii/C3Im78TqrqBZ1fjjRgEmzwGmdBp2Hduk7w5iEW5dXh4nGq/4+8Xi
> C1/o+y8acC1+IXRJBbAGMSoVdkmU9difo33CtnjMyjwPjHpkq16TWGj0w12eD8s=
> =lP1r
> -----END PGP SIGNATURE-----
>
>

I'm on the old Grub.  I keep saying I'm going to switch but . . . . . . 
. If you are using the new grub, how difficult is the switch?  Scale 
from one to ten would be fine.  1 being pulling teeth and 10 a walk in 
the park and your eyes were closed. o_O

I always keep a older boot line available so I will test this but I may 
version them anyway, just to be safe.  At least I know there is a chance 
that it would work if the init thingy didn't build correctly.  I tend to 
skip versions of kernels too.  Sometimes I go several versions.  Plus, 
honestly, I'm not even 100% sure I am booting the init thingy.  I posted 
a thread about it but no replies.  I'm about 95% sure tho that is is 
booting the init do hicky.  Can you tell I'm not really liking the init 
thingy yet?

Does the dracut init mount /usr if it is on a separate partition or do I 
have to set something to tell it too?  Right now it's not but I do plan 
to redo my set up.  I'm planning to put everything on LVM except / and 
its friends.

Thanks.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user]  Question kernel upgrades for dracut users
  2012-01-09  1:47   ` Dale
@ 2012-01-09  9:01     ` Hinnerk van Bruinehsen
  2012-01-09 11:08       ` Dale
  0 siblings, 1 reply; 6+ messages in thread
From: Hinnerk van Bruinehsen @ 2012-01-09  9:01 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09.01.2012 02:47, Dale wrote:
> Hinnerk van Bruinehsen wrote: On 09.01.2012 01:34, Dale wrote:
>>>> Howdy,
>>>> 
>>>> I'm about to upgrade my kernel.  Do I have to update the
>>>> init thingy too or should it work without updating with each
>>>> kernel upgrade?  I would be going from a 3.1.5 to a
>>>> 3.2.0-r1.
>>>> 
>>>> While I am at it, I version my bzImages.  Can I version my
>>>> init thinys too?  Have one for each version of kernel in
>>>> other words? That would be assuming I need to have it updated
>>>> as asked above.
>>>> 
>>>> Thanks.
>>>> 
>>>> Dale
>>>> 
>>>> :-)  :-)
>>>> 
>>>> 
> Hi Dale,
> 
> You can use your old "init thingy" if you don't need any modules 
> inside it. The other stuff normally doesn't change. Since most
> setups use modules, you could experience troubles...
> 
> The other way would be - as you already proposed - to create an
> "init thingy" per kernel, eg initramfs-3.2.0-r1. If you use grub2
> the grub2-mkconfig script searches for these (matching the name for
> your kernel image) and normally it works out of the box. FOr grub
> legacy (and lilo, i assume) you would need to make matching entries
> manually.
> 
> With kind regards,
> 
> Hinnerk
>> 
>> 
> 
> I'm on the old Grub.  I keep saying I'm going to switch but . . . .
> . . . If you are using the new grub, how difficult is the switch?
> Scale from one to ten would be fine.  1 being pulling teeth and 10
> a walk in the park and your eyes were closed. o_O
> 
> I always keep a older boot line available so I will test this but I
> may version them anyway, just to be safe.  At least I know there is
> a chance that it would work if the init thingy didn't build
> correctly.  I tend to skip versions of kernels too.  Sometimes I go
> several versions.  Plus, honestly, I'm not even 100% sure I am
> booting the init thingy.  I posted a thread about it but no
> replies.  I'm about 95% sure tho that is is booting the init do
> hicky.  Can you tell I'm not really liking the init thingy yet?
> 
> Does the dracut init mount /usr if it is on a separate partition or
> do I have to set something to tell it too?  Right now it's not but
> I do plan to redo my set up.  I'm planning to put everything on LVM
> except / and its friends.
> 
> Thanks.
> 
> Dale
> 
> :-)  :-)
> 

I would say it's between 8 and 9 - both versions are slotted, so you
can install both at the same time. If you have trouble, you can reboot
from a install cd/usb-drive and reinstall legacy grub. I never had any
trouble with grub2 and I am using it since about 2 years, I think (at
least no non-"handmade"-trouble ;) ).
So I think it's easy.

If you have a line for the init thingy in your grub.cfg it should use
that or throw an error. If you use dracut according to a fedora-page
you can add "rdshell rdinitdebug" to your kernel commandline and see
dracut debugmessages and being dropped to a shell. maybe you could try
that.

Since I don't use dracut I'm not sure if it would mount a seperate
usr. A quick google search seems to indicate that you have to do
something manually: according to the last answer dracut tries to mount
usr if init is a path in /usr - so you could create a symlink and add
"init=/usr/bin/init" to your kernel commandline [1] - or use systemd
(it should reside in usr, shouldn't it?).




[1] http://unix.stackexchange.com/questions/18057/dracut-and-separate-usr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPCqz5AAoJEJwwOFaNFkYc3mMH/2J9bcI7z7weXZZaNe8naw3p
uPb6mit6Q1xIuirfZhz7z4aQwxbmC/VAvbljWsCu+Ms7PTuJ7ys5UnSSQoZ0aJyV
2e73V82zS/m1m2EJ/TPOAHa4kbi7byTIFth4hTQbKfMIdXyZl7w1kvqv8WIdttnt
n/LPSvXrYRKc/vJ/WavoLZ00tzx2ANvpy1h12zK2KeDwk9/mBEbKCRvMo1RkfiJg
v3KGn/ZibCRRZc8Nd5xc6NyZlz7i6mW7QFcciteQNr83KOM8sEOnq8Z2ds6QZ/l2
g1aGrGJl3NDGlAbV9c/VU5oadl1WSqcKCEHUWZPB34MSJgHBcNlWgM90IaeVu9s=
=aMnj
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user]  Question kernel upgrades for dracut users
  2012-01-09  9:01     ` Hinnerk van Bruinehsen
@ 2012-01-09 11:08       ` Dale
  2012-01-09 13:38         ` Dale
  0 siblings, 1 reply; 6+ messages in thread
From: Dale @ 2012-01-09 11:08 UTC (permalink / raw
  To: gentoo-user

Hinnerk van Bruinehsen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I would say it's between 8 and 9 - both versions are slotted, so you
> can install both at the same time. If you have trouble, you can reboot
> from a install cd/usb-drive and reinstall legacy grub. I never had any
> trouble with grub2 and I am using it since about 2 years, I think (at
> least no non-"handmade"-trouble ;) ).
> So I think it's easy.
>
> If you have a line for the init thingy in your grub.cfg it should use
> that or throw an error. If you use dracut according to a fedora-page
> you can add "rdshell rdinitdebug" to your kernel commandline and see
> dracut debugmessages and being dropped to a shell. maybe you could try
> that.
>
> Since I don't use dracut I'm not sure if it would mount a seperate
> usr. A quick google search seems to indicate that you have to do
> something manually: according to the last answer dracut tries to mount
> usr if init is a path in /usr - so you could create a symlink and add
> "init=/usr/bin/init" to your kernel commandline [1] - or use systemd
> (it should reside in usr, shouldn't it?).
>
>
>
>
> [1] http://unix.stackexchange.com/questions/18057/dracut-and-separate-usr
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.18 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJPCqz5AAoJEJwwOFaNFkYc3mMH/2J9bcI7z7weXZZaNe8naw3p
> uPb6mit6Q1xIuirfZhz7z4aQwxbmC/VAvbljWsCu+Ms7PTuJ7ys5UnSSQoZ0aJyV
> 2e73V82zS/m1m2EJ/TPOAHa4kbi7byTIFth4hTQbKfMIdXyZl7w1kvqv8WIdttnt
> n/LPSvXrYRKc/vJ/WavoLZ00tzx2ANvpy1h12zK2KeDwk9/mBEbKCRvMo1RkfiJg
> v3KGn/ZibCRRZc8Nd5xc6NyZlz7i6mW7QFcciteQNr83KOM8sEOnq8Z2ds6QZ/l2
> g1aGrGJl3NDGlAbV9c/VU5oadl1WSqcKCEHUWZPB34MSJgHBcNlWgM90IaeVu9s=
> =aMnj
> -----END PGP SIGNATURE-----
>
>
I was thinking it did mount /usr but wasn't sure.  Actually, I thought 
that was the point.  Thing is, I'm not sure either.  It seems when I 
built mine it read fstab.  Maybe it looks there to see if /usr is on a 
separate partition and if it is then it knows to mount /usr.  I dunno.  
I'll google some more tho.

I followed a couple howtos to get mine to work.  I'm not sure but I know 
one was on a Redhat or Fedora website.  I think the others came from a 
dracut site.

I just wanted to clear up some mud before I dived off into something.

I'll check you link too.

Thanks.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user]  Question kernel upgrades for dracut users
  2012-01-09 11:08       ` Dale
@ 2012-01-09 13:38         ` Dale
  0 siblings, 0 replies; 6+ messages in thread
From: Dale @ 2012-01-09 13:38 UTC (permalink / raw
  To: gentoo-user

Dale wrote:
>
> I was thinking it did mount /usr but wasn't sure.  Actually, I thought 
> that was the point.  Thing is, I'm not sure either.  It seems when I 
> built mine it read fstab.  Maybe it looks there to see if /usr is on a 
> separate partition and if it is then it knows to mount /usr.  I 
> dunno.  I'll google some more tho.
>
> I followed a couple howtos to get mine to work.  I'm not sure but I 
> know one was on a Redhat or Fedora website.  I think the others came 
> from a dracut site.
>
> I just wanted to clear up some mud before I dived off into something.
>
> I'll check you link too.
>
> Thanks.
>
> Dale
>
> :-)  :-)
>

OK.  For future readers.  There is a option called usrmount that tells 
it to mount /usr.  That little sucker was hiding from me for the 
longest.  I do wish dracut had some better docs.  I may have to write a 
howto myself.  If for no other reason than to remind myself how to make 
it work.  lol

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-09 13:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-09  0:34 [gentoo-user] Question kernel upgrades for dracut users Dale
2012-01-09  1:08 ` Hinnerk van Bruinehsen
2012-01-09  1:47   ` Dale
2012-01-09  9:01     ` Hinnerk van Bruinehsen
2012-01-09 11:08       ` Dale
2012-01-09 13:38         ` Dale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox