Re: kernel-package system: install a boot block using the existing /etc/lilo.conf?

From: Bob Proulx (bob_at_proulx.com)
Date: 08/17/03

  • Next message: Jeremy T. Bouse: "Re: airo problem"
    Date: Sat, 16 Aug 2003 21:02:41 -0600
    To: debian-user@lists.debian.org
    
    
    

    Kevin McKinley wrote:
    > Bob Proulx wrote:
    > > installed, the symlinks pointing to it, and running lilo will set up
    > > the boot to go to the new kernel.
    > [...]
    > When I got to the "install ... existing lilo.conf" question, if I answered
    > yes rebooting the system when the script finished would boot the old kernel.
    > Doing as I wrote would boot the new kernel.

    Interesting. I just verified with an update of a machine from the
    bf24 2.4.18-bf24 to 2.4.20-2-k7 (using the 2.4.20 kernel from
    woody-proposed-updates) that this would work and it did. I wonder if
    there was a bug in a previous postinstall which has been fixed?

    > > I have noticed a bug in the kernel-image*.postinst script which does
    > > not always get the /vmlinuz et al symlinks correct, leaving them
    > > pointing to the old kernel. I tried debugging that problem but have

    I can definitely recreate this problem. Time to debug it further and
    get to root cause of it. Won't be able to do it this weekend,
    however. But I think it might be related to your experiences.

    > I don't like the symlinks thing anyway -- I would prefer to refer to a
    > kernel by its full name (as grub does).

    I can imagine that is all a compromise. The symlinks are relatively
    easy for the postinstall to rotate through from one kernel to the
    next. The current symlinks point to the latest installed kernel and
    the old symlinks rotate to vmlinuz.old et al. To refer to the full
    names it would mean reading, modifying, writing the lilo.conf file
    each time and working around any of the local admins modifications to
    that file. Using the symlinks avoids that need. Which I imagine is
    why the maintainer chose the course chosen.

    Also, when going to an initrd kernel lilo.conf already needs to be
    edited for that purpose. The maintainer apparently did not feel
    confident in the ability to read, modify, write that file while
    working around local admin edits and therefore there is a manual step
    there currently for the admin to do insert the initrd image config.
    So there are two times where editing of the lilo.conf file was
    avoided. Which leads me to assume there is some type of dragon on the
    map there. Probably the working around the edits of the local admin.

    > > > What you want to do is install a new boot block which refers to the new
    > > > kernel you just compiled.
    > >
    > > Which should be the default.
    >
    > I agree though, that installing a new boot block referring to the new kernel
    > should be the default.

    Actually when I said "should" I meant "works for me". I have not seen
    the case you describe yet in my set of installations. Other than the
    problem where the symlinks did not actually get updated.

    > I don't normally use lilo -- I use grub instead, ...

    GRUB is good. But I wish the package would automatically set itself
    up a little more than it does currently. Once configured it is self
    sustaining. But the initial setup is manual. Simple, I know. Two
    lines edited in /boot/grub/menu.lst plus four more if you are dual
    booting. And three lines added to /etc/kernel-img.conf. But it would
    be nicer if it just worked out of the box. I still use it. It is
    just like Debian. More work to install but easier and self-sustaining
    once it has been installed making it quite worthwhile.

    Bob

    
    

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    


  • Next message: Jeremy T. Bouse: "Re: airo problem"

    Relevant Pages

    • RE: Boot hangs after fresh install
      ... You could try installing Red Hat 9 and see if that boots. ... Fedora Core (or rather kernel 2.6.x+) is incompatible with your hardware ... >> the boot process hung at exactly the same point. ...
      (Fedora)
    • Re: Dell Latitude D510
      ... > I have tried installing the following on a partition: ... If you could boot the laptop with a custom kernel without any FireWire ...
      (freebsd-stable)
    • Re: 6-CORE Dunnington
      ... the kernel I found out ... boot the same 200809-CURRENT CD that I used the first time. ... I've also tried installing via PXE and it always hangs on the above ...
      (freebsd-current)
    • Re: Kernel upgrade on Dell Power edge 750
      ... Does anyone know what I need to change besides a kernel package upgrade? ... Are you using Grub or Lilo for you bootloader? ... Did the machine just NOT boot? ... I suggest installing grub as the boot loader. ...
      (Debian-User)
    • Re: kernel-package system: install a boot block using the existing /etc/lilo.conf?
      ... > would simply re-write the current boot sector, ... question is asked if lilo should be run the new kernel is already ... installed, the symlinks pointing to it, and running lilo will set up ...
      (Debian-User)