note that our initrd allows to be compressed by different tools, there is no guarantee we always use xz. so before copying the initrd.img file to initrd.xz there should be a check that picks the right suffix and the right decompression tool in the install-test-initramfs script.
see my desktop initrd vs a current snappy rpi2 initrd:
ogra@anubis:~/Devel/packages$ file /boot/initrd.img-3.13.0-63-generic
/boot/initrd.img-3.13.0-63-generic: gzip compressed data, from Unix, last modified: Sun Sep 6 10:58:31 2015
ogra@anubis:~/Devel/packages$ file /datengrab/rpi/kernel/device/assets/initrd.img
/datengrab/rpi/kernel/device/assets/initrd.img: LZMA compressed data, streamed
I have a script snippet I use in such cases, see http://paste.ubuntu.com/12334035/ (indeed you can trim that to only match xz, gzip and lzma, I don't think we use any of the others for initrd's)
also note that once Bug 1490608 is fixed, the "do_gpt()" function will be dropped and this test needs to be adjusted accordingly.
note that our initrd allows to be compressed by different tools, there is no guarantee we always use xz. so before copying the initrd.img file to initrd.xz there should be a check that picks the right suffix and the right decompression tool in the install- test-initramfs script.
see my desktop initrd vs a current snappy rpi2 initrd:
ogra@anubis: ~/Devel/ packages$ file /boot/initrd. img-3.13. 0-63-generic img-3.13. 0-63-generic: gzip compressed data, from Unix, last modified: Sun Sep 6 10:58:31 2015 ~/Devel/ packages$ file /datengrab/ rpi/kernel/ device/ assets/ initrd. img rpi/kernel/ device/ assets/ initrd. img: LZMA compressed data, streamed
/boot/initrd.
ogra@anubis:
/datengrab/
I have a script snippet I use in such cases, see http:// paste.ubuntu. com/12334035/ (indeed you can trim that to only match xz, gzip and lzma, I don't think we use any of the others for initrd's)
also note that once Bug 1490608 is fixed, the "do_gpt()" function will be dropped and this test needs to be adjusted accordingly.