Solved

Linux Live Kit gzip error

Posted on 2013-12-06
11
760 Views
Last Modified: 2014-01-15
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
Comment
Question by:lconnell
  • 4
  • 4
  • 3
11 Comments
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39703191
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
 
LVL 40

Expert Comment

by:jlevie
ID: 39703231
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
 

Author Comment

by:lconnell
ID: 39703755
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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 40

Expert Comment

by:jlevie
ID: 39703818
Manually execute gunzip on each of the .ko.gz files are replace any corrupt ones. Then run the build scripts.
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39703835
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
 

Author Comment

by:lconnell
ID: 39704537
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
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39704575
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
 
LVL 40

Expert Comment

by:jlevie
ID: 39704586
You are going to have to track back through the build script to find where the .ko.gz packages come from.
0
 

Accepted Solution

by:
lconnell earned 0 total points
ID: 39704922
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
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39753088
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
 

Author Closing Comment

by:lconnell
ID: 39781833
I had to rebuild the isolinux binary.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
Fine Tune your automatic Updates for Ubuntu / Debian
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question