Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 814
  • Last Modified:

Linux Live Kit gzip error

Hi all,

I have created a custom build of slackware 14.1 x86_64 using the latest Linux Live Kit.

When I run the ./build script, right after creating the initramfs, I get an error -> gzip: stdin: unexpected end of file.

This results in a corrupt .img file at the end of the build script. I can't find in the build scripts where this is happening.  Can someone shed some light here?

thanks!
0
lconnell
Asked:
lconnell
  • 4
  • 4
  • 3
1 Solution
 
MazdajaiCommented:
What is the build script looks like? Have you try to untar the file by hand? It complains about your standard input file from gzip compression.
0
 
jlevieCommented:
There may not be an explicit use of gzip anywhere in the build scripts. The error can come from something else that uses gzip to upack a package. The most likely cause of the error is a damaged source package.
0
 
lconnellAuthor Commented:
Here is the complete set of scripts: https://github.com/Tomas-M/linux-live

It's failing when trying to unzip the ko.gz modules in the temp directory.

find $INITRAMFS -name "*.ko.gz" | xargs gunzip
+ xargs gunzip
+ find /tmp/kiosk-initramfs-9314 -name '*.ko.gz'

gzip: stdin: unexpected end of file
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
jlevieCommented:
Manually execute gunzip on each of the .ko.gz files are replace any corrupt ones. Then run the build scripts.
0
 
MazdajaiCommented:
You should verify the files as jlevie suggested, or tighten down the file names  under the find command. This may able to reduce the errors.
0
 
lconnellAuthor Commented:
Oddly I don't see any of those files.  This is frustrating. I tried even on a slack 14.0 distro and I get the same thing. I am not getting any support from linuxquestions or slax.org.
0
 
MazdajaiCommented:
It complains  $INITRAMFS is not a valid gz file. Have you try to remake the img with the following?

find . -print | cpio -o -H newc 2>/dev/null | gzip -f --best >$INITRAMFS.img

Open in new window


If you post your entire build script, we might be able to help. But slax.org would be a better place as this seems to be a distro specific question.
0
 
jlevieCommented:
You are going to have to track back through the build script to find where the .ko.gz packages come from.
0
 
lconnellAuthor Commented:
Well everyone, thanks for your help, it looks as if it's looking for kernel modules that it doesn't need. The error is a red herring. I was able to get the live cd to boot, I was missing a part of the directions that said you needed to rebuild the isolinux binary.

Doh!

Thanks!
0
 
MazdajaiCommented:
In the future you can add -print option on the find command. It prints the path of the current working file on the screen for better debugging.
0
 
lconnellAuthor Commented:
I had to rebuild the isolinux binary.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now