<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8718</bug_id>
          
          <creation_ts>2015-11-23 21:37:42 +0000</creation_ts>
          <short_desc>wic: Kernel panic with x86 and NUC</short_desc>
          <delta_ts>2016-01-06 09:39:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>deployment</component>
          <version>2.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mariano Lopez">mariano.lopez</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>daniel.alexandrux.istrate</cc>
    
    <cc>richard.purdie</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56711</commentid>
    <comment_count>0</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-11-23 21:37:42 +0000</bug_when>
    <thetext>Using wic to create a x86-64 image for EFI (mkefidisk), I got a kernel panic: &quot;No working init found&quot;. I have tried with several images (minimal, sato, lsb, lsb-sdk, full-cmdline) with the same result. This was using sysvinit. The NUC model is D54250WYK.

Steps to reproduce:

1. Set MACHINE to: &quot;genericx86-64&quot; or &quot;intel-corei7-64&quot;
2. Build core-image-minimal
3. Use wic to create an EFI image (wic create mkefidisk -e core-image-minimal)
4. Copy the image to a flash drive with dd
5. Boot the image in a NUC</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56836</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-11-27 09:53:51 +0000</bug_when>
    <thetext>Tested on master: 03f15e51998a3ef65a5b68cb7cbf724f4388c289

I tried to reproduce this bug on Ed&apos;s behalf on NUC (D54250WYA) and it successfully booted.

I had to update the mkefidisk wks (sda --&gt; sdb)
MACHINE = &quot;intel-corei7-64&quot;


I tried also with this wks config:
part /boot --source bootimg-efi --sourceparams=&quot;loader=grub-efi&quot; --ondisk sda --label msdos --active --align 1024

part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid

part swap --ondisk sda --size 44 --label swap1 --fstype=swap

bootloader --ptable gpt  --timeout=10  --append=&quot;rootwait rootfstype=ext4 console=ttyPCH0,115200 console=tty0 vmalloc=256MB snd-hda-intel.enable_msi=0&quot;

and it worked too.


--Daniel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56837</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-11-27 09:56:22 +0000</bug_when>
    <thetext>Mariano, can you try uuid configuration showed by Daniel with your device?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56904</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-12-01 17:18:53 +0000</bug_when>
    <thetext>I tried to create the image adding --use-uuid and I got this error:

wic create mkefidisk -e core-image-minimal
Checking basic build environment...
Done.

Creating image(s)...

Error: exec_cmd: &apos;sgdisk --partition-guid=2:9987c08f-8f29-48cf-853f-e7934e063e54 /var/tmp/wic/build/mkefidisk-201512010904-sda.direct&apos; returned &apos;3&apos; instead of 0


I tried in friend&apos;s laptop and had the same error, is there something that we are doing wrong?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56933</commentid>
    <comment_count>4</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-12-02 10:51:10 +0000</bug_when>
    <thetext>Can you show your .wks please?

PS: This looks quite strange ans uuid-related options are tested by oe-selftest, so they should always work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56938</commentid>
    <comment_count>5</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-12-02 13:31:16 +0000</bug_when>
    <thetext>Here is the diff:

diff --git a/scripts/lib/wic/canned-wks/mkefidisk.wks b/scripts/lib/wic/canned-wks/mkefidisk.wks
index 696e94e..a774c76 100644
--- a/scripts/lib/wic/canned-wks/mkefidisk.wks
+++ b/scripts/lib/wic/canned-wks/mkefidisk.wks
@@ -4,7 +4,7 @@
 
 part /boot --source bootimg-efi --sourceparams=&quot;loader=grub-efi&quot; --ondisk sda --label msdos --active --align 1024
 
-part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024
+part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid
 
 part swap --ondisk sda --size 44 --label swap1 --fstype=swap</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56947</commentid>
    <comment_count>6</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-12-02 15:40:46 +0000</bug_when>
    <thetext>I can&apos;t reproduce it. Which machine do you use? Can you show your bblayers.conf?

according to gfdisk manual return code 3 means that Non-GPT disk detected and no -g option. It looks like a bug, but I have to reproduce it to be able to fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56948</commentid>
    <comment_count>7</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-12-02 15:57:00 +0000</bug_when>
    <thetext>Mariano, you should add --ptable gpt option to bootloader line in your .wks
Sorry for not noticing it before.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56969</commentid>
    <comment_count>8</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-12-02 21:18:18 +0000</bug_when>
    <thetext>It booted fine with the --use-uuid option</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56975</commentid>
    <comment_count>9</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-12-03 08:52:43 +0000</bug_when>
    <thetext>Can you try to use sdb instead of sda in original wks(without --uurd and --ptable gpt) ? Here is a recipe to try:

part /boot --source bootimg-efi --sourceparams=&quot;loader=grub-efi&quot; --ondisk sdb --label msdos --active --align 1024
 
part / --source rootfs --ondisk sdb --fstype=ext4 --label platform --align 1024
 
part swap --ondisk sdb --size 44 --label swap1 --fstype=swap

bootloader --timeout=10  --append=&quot;rootwait rootfstype=ext4 console=ttyPCH0,115200 console=tty0 vmalloc=256MB snd-hda-intel.enable_msi=0&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56997</commentid>
    <comment_count>10</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-12-03 14:59:07 +0000</bug_when>
    <thetext>When seeing the output when booting I see what is the problem and is not related with wic. The NUC I&apos;m using for testing has an SSD, and the SSD is the &quot;sda&quot;. When booting from the USB the the kernel will look for a partition in the SSD and not in the USB. This has to do with the NUC configuration and not a problem with wic.

Closing as not a bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57037</commentid>
    <comment_count>11</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-12-04 10:17:25 +0000</bug_when>
    <thetext>Mariano, have you tried to change sda-&gt;sdb in your .wks?
Did it solve the issue, i.e. did the image boot?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57558</commentid>
    <comment_count>12</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-01-06 09:39:58 +0000</bug_when>
    <thetext>Verified on above comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>