Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Linux Live Kit gzip error

Posted on 2013-12-06
11
Medium Priority
?
793 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses
Course of the Month12 days, 14 hours left to enroll

971 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