[Resent; wrong From address last time.]
Bill makes a good point here. This doesn't have to be something
used on
every boot (though if we can clean out the initramfs then I don't see
the harm). We could potentially generate 2 initrd's -- one "normal" and
one "rescue", and then have separate grub entries for each.
If we want to go with this, it might be best to think about just
ditching nash and moving to using busybox instead. Most of the functions
that nash does could be handled by the script, and other stuff we'd need
(like switchroot) could be added to it.
BTW, the initramfs standard allows for multiple cpio archives, so in
principle, one could have an "addon" images. That's useful, because
we want kernel modules in the the initrd-$KVER.img, but we could have
a generic initrd-rescue.img that is loaded after it.
Caveat: I haven't tried this, and don't know whether it actually works
with current kernels.
-Bill