<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">First, I was using 2.6.&nbsp; I tried under 2.7 and got the same issue.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I need to have the root filesystem be a logical volume.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I updated my core-image-minimal-initramfs.bbappend to include the following:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">PACKAGE_INSTALL_append = &#8220; lvm2&#8221;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">The gets the lvm2 commands into the initramfs.&nbsp; I can now run pvcreate, vgcreate and lvcreate in my custom initrdscripts/files/init-install-efi.sh script.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">rootfs=/dev/sda2<o:p></o:p></p>
<p class="MsoNormal">pvcreate $rootfs<o:p></o:p></p>
<p class="MsoNormal">vgcreate vg_root $rootfs<o:p></o:p></p>
<p class="MsoNormal">rootfs=/dev/vg_root/lv_root<o:p></o:p></p>
<p class="MsoNormal">lvcreate -n lv_root -l 95%VG vg_root<o:p></o:p></p>
<p class="MsoNormal">mkfs.ext4 -F -O 64bit $rootfs<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">All of the above run successfully.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I then try to update the loader file with the UUID of the logical volume<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">SYSTEMDBOOT_CFGS=&#8221;/boot/loader/entries/boot.conf&#8221;<o:p></o:p></p>
<p class="MsoNormal">rootuuid=$(blkid -o value -s UUID ${rootfs})<o:p></o:p></p>
<p class="MsoNormal">sed -i &#8220;s@options *@options root=UUID=$rootuuid rw rootwait quiet @&#8221; $SYSTEMDBOOT_CFGS<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">These too are successful.&nbsp; At least the appropriate changes are made.&nbsp; Unfortunately I do not think I am putting in all of the appropriate changes.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">When I boot, the system hangs waiting for root device.&nbsp; I do not see any messages in the boot output showing anything is trying to start any LVM services or run any LVM commands.&nbsp; So, I am guessing I am missing items in the options line.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I&#8217;ve tried manually editing the boot command when booting, but nothing has worked.&nbsp; I&#8217;ve tried adding lvm to the line, changing the root entry, etc.&nbsp; The boot always hangs waiting for the root device.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I did not find anything useful online.&nbsp; So, asking here.&nbsp; If there is something online that would help, please point me in the right direction.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">If there is nothing, can anyone here help me get my openembedded linux OS to boot off of a root logical volume?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thank you in advance<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Lewis Muhlenkamp<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
Follow this link to read our <a href="https://www.stryker.com/content/stryker/gb/en/legal/global-policy-statement.html/">
Privacy Statement</a>
</body>
</html>