On Sun, 13 Aug 2006 13:17:55 +0200 Pierre Habouzit wrote: > Instead, it uses a hardcoded value he takes from /etc/fstab > presumably, that makes a system where you rearraged the partition > completely impossible to boot, if you didn't faked the next /etc/fstab > and regenerated the initrd. > > Since I use grub, and if I do forget to change the menu.lst it has a > console to do so, I can always boot. the preliminary extraction of the > initrd then works, but the switch root just fails because it does not > finds the correct root, whereas it on the damn kernel command line !
Correct. That's a limitation in the yaird design: An abolute minimal initrd image is composed, based on your current setup. Only kernel modules required to access your root filesystem is included on the image, and only the devices needed are created. You are right, that if you want to switch to using a different root, then the approach with yaird is to prepare the new root, change /etc/fstab to point to the new root, and only then generate the initrd image. If you want no surprises then use yaird. If you want flexibility then use initramfs-tools. - Jonas -- * Jonas Smedegaard - idealist og Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ - Enden er nær: http://www.shibumi.org/eoti.htm
pgp38YR4KqvJD.pgp
Description: PGP signature