rc crashes if booting w/o initrd
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/
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_size=33
if [ -f /dev/initramfs/
. /dev/initramfs/
Ciao
Martin
As the system does not boot (I had to "init=/bin/sh"), I set this one to "critical"