You might want to examine:
ftp://ftp.yggdrasil.com//pub/dist/booting/make-ramdisk/make-ramdisk-0.38.tar.gz
This script builds an initial ramdisk that then switches to
another root (which you can also pass via a lilo command line argument
"root2=/dev/...."). It supports setting up /dev/loop devices for
encrypted root partitions, and you should be able to adapt it use
/dev/loop/nnn for non-encrypted roots.
Note that I am not arguing whether the "sector remapping" code
should stay or go. I don't know enough about that right now to have
an opinion.
Adam J. Richter __ ______________ 575 Oroville Road
adam@yggdrasil.com \ / Milpitas, California 95035
+1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/