error buiding ISO - initrd.img... not in gzip format\ncpio
dlarue opened this issue · 3 comments
also noted at the end of this issue:
#196
Ubuntu 18.04 recent update, console error output below.
$ sudo customizer-gui
- Read Configuration file: /etc/customizer.conf
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' - Read Configuration file: /etc/customizer.conf
- Read Configuration file: /etc/customizer.conf
- Read Configuration file: /etc/customizer.conf
=> Checking
=> Doing sanity checks
=> Gathering information
=> Cleaning up
=> Updating initramfs
update-initramfs: Generating /boot/initrd.img-4.15.0-48-generic
update-initramfs: Generating /boot/initrd.img-4.15.0-38-generic
=> Copying boot files
=> Extracting casper UUID
An error occured while a thread was running:
Type: <class 'RuntimeError'>
Details:
b'gzip: /boot/initrd.img-4.15.0-48-generic: not in gzip format\ncpio: premature end of archive'
Hello,
I get the same error, trying to rebuild a 16.04 in a 16.04. I have the same kernel in the system to be rebuilt than in the host (not sure if that matters of if it doesn't).
Here is what I get:
customizer -r
- Read Configuration file: /etc/customizer.conf
- Rebuilding ISO...
=> Checking
=> Doing sanity checks
=> Gathering information
=> Cleaning up
=> Updating initramfs
update-initramfs: Generating /boot/initrd.img-4.11.0-14-generic
cryptsetup: WARNING: could not determine root device from /etc/fstab
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
=> Copying boot files
=> Extracting casper UUID
gzip: /boot/initrd.img-4.11.0-14-generic: not in gzip format
cpio: premature end of archive
- SUBPROCESS: Command '/usr/sbin/chroot /home/customizer/FileSystem zcat /boot/initrd.img-4.11.0-14-generic | cpio --quiet -id conf/uuid.conf' returned non-zero exit status 1
I tried with both "gzip" and after, with "xz" compression levels in the customizer.conf, I got the same result.
Here is my customizer version: "customizer (4.1.5-0+20170208) unstable; urgency=medium".
I'll retry next with the latest available.
PS: I seem to have 2 archives with the same changelog, althought one was downloaded in 2018 august, and had the name "latest". Has the changelog been updated since 2017 august?
All of the newer kernel builds contain intel and AMD microcode to be applied as early as possible to defend against speculative execution attacks like Spectre.
Older images will not contain the unmkinitramfs script required to disassemble such an initramfs.
https://github.com/kamilion/customizer/releases/download/4.2.0-0/unmkinitramfs
you need the unmkinitramfs script inside the chroot's /usr/bin/unmkinitramfs so you'll have to copy it inside the FileSystem folder yourself during your own build process.
@melodie11 Changelog file may be out of date. I'll have a look at it sometime soon.