Solved

Linux Live Kit gzip error

Posted on 2013-12-06
11
752 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
 
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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

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…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

914 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now