Snappy Porting - file does not work after decompressing the tar

I-Sheng Lin ckjboy2003 at gmail.com
Tue Nov 17 14:17:48 UTC 2015


I downloaded the file device.tar.xz [1] from the Snappy Porting website.

And then I typed the command as the shown in the web page.

*$ sudo ubuntu-device-flash core 15.04 -o my-snappy.img --size 4 \
--channel edge --oem beagleblack \
--enable-ssh --device-part=./device.tar.xz*


The image has been successfully generated.

However, when I tried to decompress the file and compress it again.

For example, the compressed file name is device2.tar.xz.

I did not modify any file in the original file before compressing the file.

I then entered the same command as shown above, the error occurred.

The followings are the log appeared after entering the command.

*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*


It says it failed to read hardware.yaml from device part, however, I am
sure this file does exist in the compressed tar.

I am not sure why this happened. Did I miss anything here ?



Please provide your idea if you have any.



Thanks.


[1]
system-image.ubuntu.com/pool/device-e44a795767ceec9680a9760f30ec572a0ebb85445f21254b3b47e78ae9b8cee3.tar.xz

-- 
Sam Lin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-devel/attachments/20151117/1f213123/attachment.html>


More information about the snappy-devel mailing list