Bug#382788: [Yaird-devel] Bug#382788: yaird does not uses the kernel command like to find out the root partition

Jonas Smedegaard dr at jones.dk
Mon Aug 14 00:39:09 UTC 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/yaird-devel/attachments/20060814/da7e5470/attachment.pgp


More information about the Yaird-devel mailing list