Solved

Linux Live Kit gzip error

Posted on 2013-12-06
11
741 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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
LINUX ZIP - UNCOMPRESS WINDOWS PATH 3 59
Unix/bash: scripted arithmetic 13 82
VMWare 6 crashing 14 56
Problem logging tar errors 11 35
Just about everyone has an old PC laying around.  Ask anyone in the IT industry, whether they are a professional or play in it as a hobby.  From outdated Desktops to cheap "throwaway" laptops, they are all around and not as hard to "fix up" as you m…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

757 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

17 Experts available now in Live!

Get 1:1 Help Now