<div dir="ltr"><div><div>I downloaded the file device.tar.xz [1] from the Snappy Porting website.<br><br><p>And then I typed the command as the shown in the web page.<br></p>

<pre><code><i><b>$ sudo ubuntu-device-flash core 15.04 -o my-snappy.img --size 4 \
--channel edge --oem beagleblack \
--enable-ssh --device-part=./device.tar.xz</b></i>
</code></pre><br><p>The image has been successfully generated.</p>

<p>However, when I tried to decompress the file and compress it again.</p><p>For example, the compressed file name is device2.tar.xz. <br></p><p>I did not modify any file in the original file before compressing the file.<br></p><p>I then entered the same command as shown above, the error occurred.</p>

<p>The followings are the log appeared after entering the command.</p><br><pre><i><b><code>Determining oem configuration
Starting download of beagleblack
306.70 KB / 306.70 KB [===============================================] 100.00 % 82.43 KB/s 
Done
Starting download of icon for package
31.24 KB / 31.24 KB [=================================================] 100.00 % 75.25 KB/s 
Done
Using a custom OS or Kernel part will prevent updates for these components
Fetching information from server...
Downloading and setting up...
Failed to read hardware.yaml from device part, provisioning may fail: failed to extract a hardware.yaml from the device part: tar: hardware.yaml: Not found in archive
tar: Exiting with failure status due to previous errors

Installing beagleblack
Starting download of beagleblack
306.70 KB / 306.70 KB [==============================================] 100.00 % 106.47 KB/s 
Done
Starting download of icon for package
31.24 KB / 31.24 KB [=================================================] 100.00 % 37.96 KB/s 
Done
stat /tmp/diskimage027290368/hardware.yaml: no such file or directory</code></b></i></pre><br></div><div>It says it failed to read hardware.yaml from device part, however, I am sure this file does exist in the compressed tar.<br></div><div><br></div>I am not sure why this happened. Did I miss anything here ?<br><br></div><div><br></div><div><br></div><div>Please provide your idea if you have any.<br><br><br><br></div><div>Thanks.<br></div><div><div><br clear="all"><br>[1] <a href="http://system-image.ubuntu.com/pool/device-e44a795767ceec9680a9760f30ec572a0ebb85445f21254b3b47e78ae9b8cee3.tar.xz">system-image.ubuntu.com/pool/device-e44a795767ceec9680a9760f30ec572a0ebb85445f21254b3b47e78ae9b8cee3.tar.xz</a><br><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Sam Lin<br></div></div></div></div></div>
</div></div></div>