[OE-core] [PATCH 1/2] init-install.sh: Switch to using static device paths.

Moseley, Drew drew_moseley at mentor.com
Tue Jan 20 16:31:20 UTC 2015


On Jan 13, 2015, at 10:37 PM, ChenQi <Qi.Chen at windriver.com<mailto:Qi.Chen at windriver.com>> wrote:

-    linux /vmlinuz root=$rootfs $rootwait rw $5 $3 $4 quiet
+    linux /vmlinuz root=PARTUUID=$rootfs_uuid $rootwait rw $5 $3 $4 quiet
I thought PARTUUID is for GPT only.

Perhaps so but it does seem to be there on my VirtualBox systems.  My Ubuntu host uses "root=UUID=blah" but that was't working for me at some point.  I'll dig back into it and see what I can find.

Drew


root=UUID=xxx has to be resolved by an initramfs because kernel itself cannot handle it.

There's a patchset I sent half a year ago trying to solve this problem.
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/initramfs-uuid
This offers one solution, maybe an ugly one.

Best Regards,
Chen Qi

Hmm.  It seems that supporting static device paths with init-install.sh is a bit more tricky as PARTUUID is not supported and to use UUID requires a fairly heavyweight change to support initramfs.

For EFI though it seems that PARTUUID is usable.  Does it make sense to submit the patch to init-install-efi.sh separately?

Drew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150120/1f174b32/attachment-0002.html>


More information about the Openembedded-core mailing list