[yast-devel] Product Creator fails to sign using GPG key
I am trying to create a product (version 3.1.5-2.1.6) and sign it but it is failing at the very end. This is the error I receive: Error Could not ad GPG key XXXXXXXX to initrd boot/x86_64/loader/initrd In y2log, this is what I found: 2014-10-24 11:35:15 <1> linux-jz90(2108) [Ruby] modules/ProductCreator.rb:909 executing: cd '/vault/inst/suse/13.2-custom-x86_64/boot/x86_64/loader' && gunzip < '/vault/inst/suse/13.2-custom-x86_64/boot/x86_64/loader/initrd' > '/vault/inst/suse/13.2-custom-x86_64/boot/x86_64/loader/initrd.cpio' 2014-10-24 11:35:15 <3> linux-jz90(2108) [bash] ShellCommand.cc(shellcommand):78 2014-10-24 11:35:15 <3> linux-jz90(2108) [bash] ShellCommand.cc(shellcommand):78 gzip: stdin: not in gzip format 2014-10-24 11:35:15 <3> linux-jz90(2108) [Ruby] modules/ProductCreator.rb:915 result: 1 2014-10-24 11:35:15 <3> linux-jz90(2108) [Ruby] modules/ProductCreator.rb:2687 Could not add GPG key 95D23528 to initrd boot/x86_64/loader/initrd. The problem appears to be that the compression of initrd is xz and not gz. If I change gunzip to unxz on line 2370 of ProductCreator.rb, the problem goes away. This is just a hack and might be causing unknown consequences. Thanks, Jeromy -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
Dne 24.10.2014 v 19:02 Jeromy Smith napsal(a):
I am trying to create a product (version 3.1.5-2.1.6) and sign it but it is failing at the very end. This is the error I receive: [...] The problem appears to be that the compression of initrd is xz and not gz. If I change gunzip to unxz on line 2370 of ProductCreator.rb, the problem goes away. This is just a hack and might be causing unknown consequences.
We need to detect the compression method used (gzip vs xz), replacing gunzip by unxz fixes the issue with 13.2 but it breaks the functionality for older versions... Thank you for looking into the issue! BTW SLES12 is also affected: # file initrd initrd: XZ compressed data It's seems like a candidate for a SLE12 maintenance update... -- Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (2)
-
Jeromy Smith
-
Ladislav Slezak