The background on this: ----- Forwarded message from Phil Endecott <[EMAIL PROTECTED]> -----
From: Phil Endecott <[EMAIL PROTECTED]> Subject: Re: [nslu2-linux] Order of sda and sdb in new Debian system Date: Sun, 26 Nov 2006 16:41:59 +0000 To: nslu2-linux The Debian/NSLU2 initramfs hard-codes /dev/sda1 as the root device, overriding any root= kernel command line parameter. I am trying to understand how this all works and where is the right place to fix it. The script in /usr/share/initramfs-tools/hooks/nslu2 makes a sensible choice of default root device. It puts this in conf/param.conf in the initramfs. conf/param.conf is sourced by the call_scripts() function, with the comment "allow boot scripts to modify exported boot paramaters". This is called by init, via run_scripts(), in several places, AFTER it has parsed the kernel command line. My impression is that conf/param.conf is the wrong place to define this default value. Looking at init, I suggest that it should go in, for example, conf/conf.d/default_root. I would like to try this out, but I have not yet worked out how to save a modified initramfs. The kernel documentation says that it is linked in to the kernel, yet the slug seems to have a separate mtd partition for it. Any ideas? Cheers, Phil. ----- End forwarded message ----- -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

