* Kernel Installation Options - Quick Poll
@ 2004-06-21 7:24 achapkis
2004-06-21 8:47 ` strepsil
0 siblings, 1 reply; 11+ messages in thread
From: achapkis @ 2004-06-21 7:24 UTC (permalink / raw)
What's wrong with having a standard aboot.conf with a generic "vmlinuz" entry that's a link to the real kernel? This
way a fresh install of the system (and kernel's rpm) doesn't do a thing to aboot.conf. Instead it uses a symbolic link.
And a kernel upgrade would do option 1 (adding an entry to aboot.conf without making it a default).
>On Sun, 20 Jun 2004 11:04:56 -0400, Davis Johnson <davis at frizzen.com> wrote:
>> I'd go with the third, a strong preference.
>
>It occurred to me the other day that there are two distinct times
>where this question becomes an issue - first is an upgrade of a
>running system, the second is during a full system upgrade/install.
>
>In the first case, I think you're dead right. For starters, it can be
>assumed that the system already actually boots, and messing with that
>is a bit stupid.
>
>In the latter case though, I think some sort of reasonable defaults
>are called for. aboot.conf should probably be replaced/installed with
>some reasonable defaults to match the kernel being dropped onto the
>system by the installer.
>
>(I've been thinking about this _way_ too much, considering I've barely
>got Anaconda running in a boot-disc-like environment so far.)
>
>The question remains as to whether "fixing" SRM to match the installed
>system can be done reliably. It's all pretty academic right now,
>anyway. :)
>
Arc C.
achapkis at dls.net
^ permalink raw reply [flat|nested] 11+ messages in thread* Kernel Installation Options - Quick Poll
2004-06-21 7:24 Kernel Installation Options - Quick Poll achapkis
@ 2004-06-21 8:47 ` strepsil
2004-06-21 9:01 ` achapkis
2004-06-21 16:09 ` rezso
0 siblings, 2 replies; 11+ messages in thread
From: strepsil @ 2004-06-21 8:47 UTC (permalink / raw)
On Mon, 21 Jun 2004 02:24:52 -0500, Arkadiy Chapkis - Arc
<achapkis at dls.net> wrote:
> What's wrong with having a standard aboot.conf with a generic "vmlinuz" entry that's a link to the real kernel? This
> way a fresh install of the system (and kernel's rpm) doesn't do a thing to aboot.conf. Instead it uses a symbolic link.
> And a kernel upgrade would do option 1 (adding an entry to aboot.conf without making it a default).
Don't quote me on this, but I seem to recall aboot having issues with
symlinks, at least at one point.
The whole bit with your boot being based of symlinks doesn't work for
me on some fundamental level, though. It adds a layer of "mystery" to
the setup when you can't look at your config from aboot or SRM and
tell what you're actually about to boot into. I think it's much better
for a system-installed package to keep its files properly labeled for
what version they're at, especially something that allows multiple
concurrent versions to be installed like a kernel.
Overlap with multiple versions, each trying to claim ownership of a
file with a common name (even if it's just a symlink) is asking for
trouble.
Just simply adding an entry into aboot.conf for the new version
(checking that it's not already there), might be harmless enough,
leaving it to the admin of the system to decide whether to boot it or
not, but even then you've got to either try to clean up on removal, or
leave the admin to do it.
I'm leaning towards thinking that it's just too much trouble. Drop a
"clean" aboot.conf on the system (after backing up anything
pre-existing) during a system install/upgrade, or leave it all alone.
I sure can ramble on a bit when I'm at home all alone, can't I? :)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Kernel Installation Options - Quick Poll
2004-06-21 8:47 ` strepsil
@ 2004-06-21 9:01 ` achapkis
2004-06-21 9:16 ` strepsil
2004-06-21 16:09 ` rezso
1 sibling, 1 reply; 11+ messages in thread
From: achapkis @ 2004-06-21 9:01 UTC (permalink / raw)
> > What's wrong with having a standard aboot.conf with a generic
> > "vmlinuz" entry that's a link to the real kernel? This way
> a fresh install of the system (and kernel's rpm) doesn't do a
> thing to aboot.conf. Instead it uses a symbolic link.
> > And a kernel upgrade would do option 1 (adding an entry to
> aboot.conf without making it a default).
>
> Don't quote me on this, but I seem to recall aboot having
> issues with symlinks, at least at one point.
>
> The whole bit with your boot being based of symlinks doesn't
> work for me on some fundamental level, though. It adds a
> layer of "mystery" to the setup when you can't look at your
> config from aboot or SRM and tell what you're actually about
> to boot into.
Not to discard a valid points, but...
Here's the aboot.conf from my PWS500a:
# aboot default configurations
0:1/boot/vmlinuz root=/dev/sda1 noinitrd console=tty0
1:1/boot/vmlinuz-2.4.18-27.7.x.hp root=/dev/sda1
initrd=/boot/initrd-2.4.18-27.7.x.hp.img console=tty0
2:1/boot/vmlinuz-2.4.18-27.7.x.hp root=/dev/sda1
initrd=/boot/initrd-2.4.18-27.7.x.hp.img console=ttyS0
3:1/boot/vmlinuz-2.4.18-27.7.x.hp root=/dev/sda1
initrd=/boot/initrd-2.4.18-27.7.x.hp.img console=ttyS0 console=tty0
4:1/boot/vmlinuz-2.4.18-27.7.x.hp root=/dev/sda1
initrd=/boot/initrd-2.4.18-27.7.x.hp.img single
and...
$ ls -l /boot/
total 15896
lrwxrwxrwx 1 root root 16 Apr 4 23:06 System.map ->
System.map-2.6.5
-rw-r--r-- 1 root root 668024 May 12 2003
System.map-2.4.18-27.7.x.hp
-rw-r--r-- 1 root root 1131075 Mar 11 12:28 System.map-2.6.4
-rw-r--r-- 1 root root 1138138 Apr 5 21:22 System.map-2.6.5
-rw-r--r-- 1 root root 89088 Mar 24 2003 bootlx
-rw-r--r-- 1 root root 44507 May 12 2003
config-2.4.18-27.7.x.hp
-rw-r--r-- 1 root root 801644 Jul 3 2003
initrd-2.4.18-27.7.x.hp.img
lrwxrwxrwx 1 root root 27 Oct 18 2003 initrd.img ->
initrd-2.4.18-27.7.x.hp.img
-rw-r--r-- 1 root root 408 Jul 3 2003 kernel.h
lrwxrwxrwx 1 root root 28 Jul 3 2003 module-info ->
module-info-2.4.18-27.7.x.hp
-rw-r--r-- 1 root root 15436 May 12 2003
module-info-2.4.18-27.7.x.hp
-rwxr-xr-x 1 root root 7028213 May 12 2003
vmlinux-2.4.18-27.7.x.hp
lrwxrwxrwx 1 root root 13 Apr 4 23:07 vmlinuz ->
vmlinuz-2.6.5
-rwxr-xr-x 1 root root 1335354 May 12 2003
vmlinuz-2.4.18-27.7.x.hp
-rw-r--r-- 1 root root 1973680 Mar 11 12:28 vmlinuz-2.6.4
-rw-r--r-- 1 root root 1983171 Apr 5 21:22 vmlinuz-2.6.5
$ uname -a
Linux baltika 2.6.5 #2 Mon Apr 5 19:03:58 CDT 2004 alpha unknown
^ permalink raw reply [flat|nested] 11+ messages in thread
* Kernel Installation Options - Quick Poll
2004-06-21 8:47 ` strepsil
2004-06-21 9:01 ` achapkis
@ 2004-06-21 16:09 ` rezso
2004-06-21 9:34 ` strepsil
1 sibling, 1 reply; 11+ messages in thread
From: rezso @ 2004-06-21 16:09 UTC (permalink / raw)
On Monday 21 June 2004 04:47, Mike Barnes wrote:
> On Mon, 21 Jun 2004 02:24:52 -0500, Arkadiy Chapkis - Arc
> <achapkis at dls.net> wrote:
> > What's wrong with having a standard aboot.conf with a generic "vmlinuz" entry that's a link to the real kernel? This
> > way a fresh install of the system (and kernel's rpm) doesn't do a thing to aboot.conf. Instead it uses a symbolic link.
> > And a kernel upgrade would do option 1 (adding an entry to aboot.conf without making it a default).
>
> Don't quote me on this, but I seem to recall aboot having issues with
> symlinks, at least at one point.
Hi Mike !
I fail to get a good mkinitrd wich can modify entries in aboot.conf
and to fix it will take to write new routines in mkinitrd/grubby source but have a final solution for that problem
until will fix it totaly:
Distro come with a default aboot.conf wich has a default 1:/boot/vmlinuz initrd=/boot/initrd.img root=....
Whenever a kernel is instaled it will create symlink for new vmlinuz and new initrd.img symlink, need to modify
kernel.spec post/pre for do this for alphas.
I tested this one, symlinks in aboot-0.9b/aboot-1.0pre2 is super ok no problem at all, and never was as i know.
Mike, as you told me have few issues with my 2.6.4 kernel so right now i am rebuilding latest FC3-devel kernel,
i need to figure out a best possible 2.6 kernel for the distro.
>
> The whole bit with your boot being based of symlinks doesn't work for
> me on some fundamental level, though. It adds a layer of "mystery" to
> the setup when you can't look at your config from aboot or SRM and
> tell what you're actually about to boot into. I think it's much better
> for a system-installed package to keep its files properly labeled for
> what version they're at, especially something that allows multiple
> concurrent versions to be installed like a kernel.
>
> Overlap with multiple versions, each trying to claim ownership of a
> file with a common name (even if it's just a symlink) is asking for
> trouble.
>
> Just simply adding an entry into aboot.conf for the new version
> (checking that it's not already there), might be harmless enough,
> leaving it to the admin of the system to decide whether to boot it or
> not, but even then you've got to either try to clean up on removal, or
> leave the admin to do it.
Someone offer volunteer to modify mkinitrd ?
I can give a patch wich works partialy till some stage, but need time to figure out.
I failed, getting trouble because aboot.conf has total different layout versus lilo/silo/yaboot/other.
they begin with strandard text based entry label or something wich is used as index of entry, but
aboot begin with a number/character wich is differnet enty by entry.
> I'm leaning towards thinking that it's just too much trouble. Drop a
> "clean" aboot.conf on the system (after backing up anything
> pre-existing) during a system install/upgrade, or leave it all alone.
>
> I sure can ramble on a bit when I'm at home all alone, can't I? :)
>
>
> _______________________________________________
> axp-list mailing list
> axp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/axp-list
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Kernel Installation Options - Quick Poll
2004-06-21 16:09 ` rezso
@ 2004-06-21 9:34 ` strepsil
0 siblings, 0 replies; 11+ messages in thread
From: strepsil @ 2004-06-21 9:34 UTC (permalink / raw)
On Mon, 21 Jun 2004 12:09:08 -0400, Balint Cristian <rezso at rdsor.ro> wrote:
> I fail to get a good mkinitrd wich can modify entries in aboot.conf
> and to fix it will take to write new routines in mkinitrd/grubby source but have a final solution for that problem
> until will fix it totaly:
Ahh, just had a poke through the %post section of the kernel. The
new-kernel-pkg script does all that stuff - well, with a little help.
:)
Shouldn't be _too_ hard to knock something up.
> Distro come with a default aboot.conf wich has a default 1:/boot/vmlinuz initrd=/boot/initrd.img root=....
> Whenever a kernel is instaled it will create symlink for new vmlinuz and new initrd.img symlink, need to modify
> kernel.spec post/pre for do this for alphas.
Actually, the Kernel %post shouldn't need to be touched at all, just
the new-kernel-pkg script installed as part of mkinitrd.
I'd rather steer away from the symlink bit, actually. It's not
consistent with what Fedora Core does on x86 (my knowledge of it on
other architectures is limited, I admit) and it still runs into the
issue of setting a newly installed kernel as a default.
Actually, this is a bit of a gripe I have on x86 as well - at some
point new kernels started getting set in Grub to boot by default when
installed. I'm pretty sure this never used to happen. I like the idea
of setting them up to be bootable, but not making them the default on
the next boot.
I'll take a look through the other systems' scripts when I next get a
chance. Shouldn't be too hard to fish out the first valid line in
aboot.conf, duplicate it with the new kernel's version numbers, and
add it to the next available slot.
> Mike, as you told me have few issues with my 2.6.4 kernel so right now i am rebuilding latest FC3-devel kernel,
> i need to figure out a best possible 2.6 kernel for the distro.
I've got a clean build of the latest 2.6.6 FC2 errata kernel up and
running on my system. I've built the SMP kernel too, but don't have
anything to test it on right now. I was going to use that one with the
ISOs I'm putting together. Seems pretty stable on my system so far.
Even got DRI up and running with my Radeon, which was giving me some
troubles under the 2.6.4 I was running previously.
I'll see if I can get my new Kernel RPMs uploaded to the FTP site this
evening (damned 128k upstream at home - a couple of times I've just
dumped new files on my iPod and driven over to work with it - much
faster).
^ permalink raw reply [flat|nested] 11+ messages in thread
* Kernel Installation Options - Quick Poll
@ 2004-06-18 14:08 strepsil
2004-06-20 2:23 ` achapkis
0 siblings, 1 reply; 11+ messages in thread
From: strepsil @ 2004-06-18 14:08 UTC (permalink / raw)
Fedora status wise - my DS10 is currently recompiling all packages to
give one final shakedown of what does and does not build. Once this
completes, I'm pretty confident of getting some install ISO images
happening - then I'm hoping to pretty much cut loose from doing this,
and we'll see if things sink or swim.
There's a lot that's not working properly (or at all), but I did
manage to get in a round of Tuxracer while compiling a kernel last
night, so it's not doing too badly.
In the meantime, could I get a few opinions from folks here as to what
they'd like to see a new kernel RPM to do after installation?
1) Add itself to aboot.conf
2) Add itself to aboot.conf, taking some steps to make itself the
default (would require some SRM flag checking/setting, probably not
practical to do this reliably)
3) Leave everything alone and let the sysadmin sort it out
Currently, we've got option 3. It's easy to implement. :)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Kernel Installation Options - Quick Poll
2004-06-18 14:08 strepsil
@ 2004-06-20 2:23 ` achapkis
2004-06-20 15:04 ` davis
0 siblings, 1 reply; 11+ messages in thread
From: achapkis @ 2004-06-20 2:23 UTC (permalink / raw)
I'd opt for the second
>
> Fedora status wise - my DS10 is currently recompiling all
> packages to give one final shakedown of what does and does
> not build. Once this completes, I'm pretty confident of
> getting some install ISO images happening - then I'm hoping
> to pretty much cut loose from doing this, and we'll see if
> things sink or swim.
>
> There's a lot that's not working properly (or at all), but I
> did manage to get in a round of Tuxracer while compiling a
> kernel last night, so it's not doing too badly.
>
> In the meantime, could I get a few opinions from folks here
> as to what they'd like to see a new kernel RPM to do after
> installation?
>
> 1) Add itself to aboot.conf
>
> 2) Add itself to aboot.conf, taking some steps to make itself
> the default (would require some SRM flag checking/setting,
> probably not practical to do this reliably)
>
> 3) Leave everything alone and let the sysadmin sort it out
>
> Currently, we've got option 3. It's easy to implement. :)
>
>
> _______________________________________________
> axp-list mailing list
> axp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/axp-list
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Kernel Installation Options - Quick Poll
2004-06-20 2:23 ` achapkis
@ 2004-06-20 15:04 ` davis
2004-06-21 7:06 ` strepsil
0 siblings, 1 reply; 11+ messages in thread
From: davis @ 2004-06-20 15:04 UTC (permalink / raw)
I'd go with the third, a strong preference.
First, anybody with a modified aboot.conf may be in for an ugly suprise.
Granted, the aboot.conf file is probably easier to add a line to
automaticly than a great number of other configuration files but I still
don't want somebody blindly mucking with mine.
Second, a newly installed kernel should never be the default boot until
you've had a chance to test it. This is especialy true of any production
system.
Having a system that won't boot isn't the end of the world, but it is a
damned pain.
Make 3 the default with 1 and 2 options iff selected by the user. Make 1
the default if you must (and I think you shouldn't) but never 2.
Arc C. wrote:
> I'd opt for the second
>
>
>
>>Fedora status wise - my DS10 is currently recompiling all
>>packages to give one final shakedown of what does and does
>>not build. Once this completes, I'm pretty confident of
>>getting some install ISO images happening - then I'm hoping
>>to pretty much cut loose from doing this, and we'll see if
>>things sink or swim.
>>
>>There's a lot that's not working properly (or at all), but I
>>did manage to get in a round of Tuxracer while compiling a
>>kernel last night, so it's not doing too badly.
>>
>>In the meantime, could I get a few opinions from folks here
>>as to what they'd like to see a new kernel RPM to do after
>>installation?
>>
>>1) Add itself to aboot.conf
>>
>>2) Add itself to aboot.conf, taking some steps to make itself
>>the default (would require some SRM flag checking/setting,
>>probably not practical to do this reliably)
>>
>>3) Leave everything alone and let the sysadmin sort it out
>>
>>Currently, we've got option 3. It's easy to implement. :)
>>
>>
>>_______________________________________________
>>axp-list mailing list
>>axp-list at redhat.com
>>https://www.redhat.com/mailman/listinfo/axp-list
>>
>>
>>
>
>
>_______________________________________________
>axp-list mailing list
>axp-list at redhat.com
>https://www.redhat.com/mailman/listinfo/axp-list
>
>
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Kernel Installation Options - Quick Poll
2004-06-20 15:04 ` davis
@ 2004-06-21 7:06 ` strepsil
2004-06-21 12:16 ` davis
0 siblings, 1 reply; 11+ messages in thread
From: strepsil @ 2004-06-21 7:06 UTC (permalink / raw)
On Sun, 20 Jun 2004 11:04:56 -0400, Davis Johnson <davis at frizzen.com> wrote:
> I'd go with the third, a strong preference.
It occurred to me the other day that there are two distinct times
where this question becomes an issue - first is an upgrade of a
running system, the second is during a full system upgrade/install.
In the first case, I think you're dead right. For starters, it can be
assumed that the system already actually boots, and messing with that
is a bit stupid.
In the latter case though, I think some sort of reasonable defaults
are called for. aboot.conf should probably be replaced/installed with
some reasonable defaults to match the kernel being dropped onto the
system by the installer.
(I've been thinking about this _way_ too much, considering I've barely
got Anaconda running in a boot-disc-like environment so far.)
The question remains as to whether "fixing" SRM to match the installed
system can be done reliably. It's all pretty academic right now,
anyway. :)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Kernel Installation Options - Quick Poll
2004-06-21 7:06 ` strepsil
@ 2004-06-21 12:16 ` davis
0 siblings, 0 replies; 11+ messages in thread
From: davis @ 2004-06-21 12:16 UTC (permalink / raw)
Mike Barnes wrote:
>On Sun, 20 Jun 2004 11:04:56 -0400, Davis Johnson <davis at frizzen.com> wrote:
>
>
>>I'd go with the third, a strong preference.
>>
>>
>
>It occurred to me the other day that there are two distinct times
>where this question becomes an issue - first is an upgrade of a
>running system, the second is during a full system upgrade/install.
>
>
Also a good point. And I need to remember that some folks get itchy
about editing any configuration file with their bare hands, they'd
probably appreciate some support, too. I think that if you can update
the SRM file, and make it an option, that would be best. But not the
highest priority.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/axp-list/attachments/20040621/7444e8b6/attachment.htm>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2004-06-21 16:09 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-21 7:24 Kernel Installation Options - Quick Poll achapkis
2004-06-21 8:47 ` strepsil
2004-06-21 9:01 ` achapkis
2004-06-21 9:16 ` strepsil
2004-06-21 16:09 ` rezso
2004-06-21 9:34 ` strepsil
-- strict thread matches above, loose matches on Subject: below --
2004-06-18 14:08 strepsil
2004-06-20 2:23 ` achapkis
2004-06-20 15:04 ` davis
2004-06-21 7:06 ` strepsil
2004-06-21 12:16 ` davis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox