rc crashes if booting w/o initrd

Bug #28290 reported by Martin Emrich
4
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

Hi!

I compiled a custom kernel without an initrd or initramfs. After rebooting
today, my computer printed weird messages about /etc/init.d/rc (roughly '" * 2
+ 0" is not a valid expression'), the whole boot process was bogged.

It turned out that a shell variable inside /etc/init.d/rc, used in a
calculation, was not initialized if /dev/initramfs/progress_state
was missing, which was the case with my new kernel. This patch fixes it:

--- rc.old 2006-01-09 20:20:39.000000000 +0100
+++ rc.new 2006-01-09 20:20:45.000000000 +0100
@@ -143,6 +143,7 @@
         fi

        PROGRESS_STATE=0
+ progress_size=33
        if [ -f /dev/initramfs/progress_state ]; then
                . /dev/initramfs/progress_state
                progress_size=$(((100 - $PROGRESS_STATE) / 3))

Ciao

Martin

Revision history for this message
Martin Emrich (emme) wrote :

As the system does not boot (I had to "init=/bin/sh"), I set this one to "critical"

Revision history for this message
Martin Emrich (emme) wrote :

Oops, I forgot to mention: I run Dapper Drake (last update right after the crash)

Ciao

Martin

Revision history for this message
Martin Emrich (emme) wrote :

After dist-upgrade this morning (Version: 2.86.ds1-6ubuntu1), the bug is fixed.

Thanks!

Ciao

Martin

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.