Solved

Linux Live Kit gzip error

Posted on 2013-12-06
11
773 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

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…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

738 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