linux kernel's post-installation script corrupts lilo when it encounters a software raid error.

Bug #438177 reported by Lawren Quigley-Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lilo (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: lilo

Ubuntu Hardy

linux-image-2.6.24-24-server 2.6.24-24.60
lilo 1:22.8-3.1ubuntu1
mdadm 2.6.3+200709292116+4450e59-3ubuntu3.1

A kernel upgrade identified a failed drive in a software mirror and refused to write changes to just one disk. From what I gathered, this fail state was hit after the second stage had been written to disk leaving an incompatible first/second stage pair. At very least this error message should include a warning that the system will be unbootable until the lilo install command is re-run with the -H option.

After the failed kernel upgrade lilo would fail to boot with the following error message:
EBDA is big; Kernel setup stack overlaps LILO second stage"

The apt failure was as follows:
Log started: 2009-09-27 23:33:54
Setting up linux-image-2.6.24-24-server (2.6.24-24.60) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.24-24-server
update-initramfs: lilo run failed for /boot/initrd.img-2.6.24-24-server:

Warning: LBA32 addressing assumed
Warning: '/proc/partitions' does not match '/dev' directory structure.
    Name change: '/dev/dm-0' -> '/dev/vg0/root'
Warning: Name change: '/dev/dm-1' -> '/dev/vg0/var'
Warning: Name change: '/dev/dm-2' -> '/dev/vg0/log'
Warning: Name change: '/dev/dm-3' -> '/dev/vg0/usr'
Warning: Name change: '/dev/dm-4' -> '/dev/vg0/home'
Warning: Name change: '/dev/dm-5' -> '/dev/vg0/swap'
Warning: Name change: '/dev/dm-6' -> '/dev/vg0/vmware'
Fatal: Not all RAID-1 disks are active; use '-H' to install to active disks only
Failed to create initrd image.
dpkg: error processing linux-image-2.6.24-24-server (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 linux-image-2.6.24-24-server
Log ended: 2009-09-27 23:34:00

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (6.4 KiB)

This bug was fixed in the package lilo - 1:23.2-1

---------------
lilo (1:23.2-1) unstable; urgency=medium

  [ Joachim Wiedorn ]
  * New upstream release:
    - Fix for larger kernel setup code. (Closes: #625266)
    - Update of manpages (mkrescue.8, lilo.conf.5).
  * Update of some patches; remove of some patches (now in upstream).
  * debconf scripts:
    - Update of French translation (fr.po). (Closes: #621845)
    - Update of Portuguese translation (pt.po). (Closes: #622642)
    - Update of Russian translation (ru.po). (Closes: #623794)
    - Update of Japanese translation (ja.po). (Closes: #624629)
  * debian/control:
    - Bump to Standards-Version 3.9.2 (without changes).
    - Remove mbr dependency for package lilo (no more needed).
    - Replace perl-modules dependency with variable ${perl:Depends}.

  [ Niels Thykier ]
  * Added DMUA flag.

lilo (1:23.1-2) unstable; urgency=medium

  [ Joachim Wiedorn ]
  * debian/control:
    - Remove dependency to lilo in package lilo-doc. (Closes: #613753)
  * Fix: save errno for second command (device.c).
  * Fix: save file permissions for converted lilo.conf (Closes: #615103)
      and fix some typos in script lilo-uuid-diskid.
  * Fix: missleading error message in geometry.c. (Closes: #445264)
  * Reformatting of mkrescue manpage (thanks to M.E. Schauer).
      (Closes: #617282)
  * debconf scripts:
    - Fix typos in some debconf translation files. (Closes: #504733)
    - Use better style in debconf translations. (Closes: #312451, #504733)
    - Remove debconf code for managing old boot/boot.b and similar files.
    - Remove no more needed debian/lilo.lintian-overrides file.
    - Remove script liloconfig and all appropriate debconf code.
    - Update of German translation (de.po).
    - Update of French translation (fr.po). (Closes: #615936)
    - Update of Russian translation (ru.po). (Closes: #616691)
    - Update of Galician translation (gl.po).
    - Update of Danish translation (da.po). (Closes: #618004)
    - Update of Basque translation (eu.po). (Closes: #618253)
    - Update of Czech translation (cs.po). (Closes: #618711)
    - Update of Spanish translation (es.po). (Closes: #618813)
    - Update of Finnish translation (fi.po). (Closes: #618886)
    - Update of Italian translation (it.po). (Closes: #618801)
    - Update of Brazilian Portuguese translation. (Closes: #618738)
    - Update of Swedish translation (sv.po). (Closes: #618620)
  * Add new script liloconfig, using template with comments,
      works with UUID, LABEL and disk-id for root and boot options.
  * Add new manpage for liloconfig, update of other manpages.
  * Fix typos and phrases in manpage of lilo.conf. (Closes: #258472)

  [ Niels Thykier ]
  * Added Depends on perl-modules, since liloconfig needs it.

lilo (1:23.1-1) unstable; urgency=low

  * New upstream release. (Closes: #339778)
  * Upstream bugfixes:
    - Option 'append' works with acpi=off. (Closes: #428390)
    - Working on degraded RAID-1 device. (Closes: #278373, #522283)
    - Working with MD v1.0 RAID-1 boot devices. (Closes: #598035)
    - Working with spaces in labels. (Closes: #287257)
    - Using new hook scripts for kernel and initrd only one...

Read more...

Changed in lilo (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.