[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#497133: initramfs-tools: explodes when kernel is booted with root=mtd0



Package: initramfs-tools
Version: 0.92f

On OLPC machines, root is a nand device that is mounted as mtd0 (it is
neither a block device nor a char device).  The arguments passed to the
kernel are "ro root=mtd0 rootfstype=jffs2".

Unfortunately, attempting to use an initrd based upon initramfs-tools
on such a machine results in a kernel panic and a syntax error.


Begin: Mounting root file system ... /init: line 172: syntax error:
0xmtd0

The probably appears to be in parse_numeric(); the init scripts assume
that normal devices are always prefixed with /, and root= strings that
aren't are raw device numbers (prefixing them with 0x).  I'm not sure
if there are other devices similar to mtd that don't begin with a /.



Reply to: