LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-10-2021, 02:31 AM   #1
jowski
Member
 
Registered: Aug 2007
Posts: 76

Rep: Reputation: 5
make_slackware_live.sh FAILED at lines 1546, 1548, and 1936


I'm trying to build my own slackware_live USB and when the script attempts to patch /mnt/sbin/liloconfig, it fails at the 8th hunk. 1-7 and 9&10 all patch without a problem. The code that should be patched matches the code in the patch exactly which is somewhat frustrating and breaks the script.

There are two other minor issues that come up before this. Lines 1546 and 1548 are attempts to look at and create a symlink to /usr/share/zoneinfo/UTC. I was able to get past this by commenting both lines but I'm sure that's not the best solution.

I'm wondering what to do now. The thought of manually applying the 8th hunk and trying again has crossed my mind.

Jim

edit: The version I'm trying to build the stick with is 'current' and was last updated May 9, 2021 around 0900 UTC. The system I'm doing the build on is also 'current' but the last update was a month or two ago.

second edit: I tried manually applying the offending patch hunk and got to this:

-- Preparing the system for live booting.
-- Creating initrd for kernel-generic 5.4.57 ...
tar: option requires an argument -- 'f'
Try 'tar --help' or 'tar --usage' for more information.
*** ./make_slackware_live.sh FAILED at line 3059 ***
--- Cleaning up the staging area...

Could it be the order of things on line 3059?

Swapping things around on line 3059 changed the error to:
tar: -C: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
*** ./make_slackware_live.sh FAILED at line 3059 ***
--- Cleaning up the staging area...

Ineresting since it checked to see if the staging area was created (and it was) six lines earlier. I'm stuck.

Last edited by jowski; 05-10-2021 at 03:17 AM. Reason: Add version and system information
 
Old 05-10-2021, 06:36 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,502

Rep: Reputation: 7883Reputation: 7883Reputation: 7883Reputation: 7883Reputation: 7883Reputation: 7883Reputation: 7883Reputation: 7883Reputation: 7883Reputation: 7883Reputation: 7883
Quote:
Originally Posted by jowski View Post
Code:
-- Preparing the system for live booting.
-- Creating initrd for kernel-generic 5.4.57 ...
tar: option requires an argument -- 'f'
Try 'tar --help' or 'tar --usage' for more information.
*** ./make_slackware_live.sh FAILED at line 3059 ***
--- Cleaning up the staging area...
Kernel 5.4.47 was updated in Slackware-current on 18 June 2020, almost a year ago. We are now at 5.10.35.
The liloconfig patch works with the script in current, but it won't apply to the version of liloconfig that we had in June 2020. That script was changed quite a bit in December 2020.
I expect that your version of -current you are building that Live ISO with is not as current as you believe.
 
Old 05-10-2021, 12:23 PM   #3
jowski
Member
 
Registered: Aug 2007
Posts: 76

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by Alien Bob View Post
Kernel 5.4.47 was updated in Slackware-current on 18 June 2020, almost a year ago. We are now at 5.10.35.
The liloconfig patch works with the script in current, but it won't apply to the version of liloconfig that we had in June 2020. That script was changed quite a bit in December 2020.
I expect that your version of -current you are building that Live ISO with is not as current as you believe.
I don't understand the errors or messages also. Here's what I'm building on and some version hints for what I'm building with.
root@bathroom:/home/jim/Desktop/liveslak# uname -r
5.10.32

root@bathroom:/home/jim/Desktop/liveslak# ls -l /video/slackware64-current/slackware64/a/kernel-*.txz
-rw-r--r-- 1 jim users 166491324 May 4 11:49 /video/slackware64-current/slackware64/a/kernel-firmware-20210503_ecdfcf8-noarch-1.txz
-rw-r--r-- 1 jim users 7779696 May 7 12:37 /video/slackware64-current/slackware64/a/kernel-generic-5.10.35-x86_64-1.txz
-rw-r--r-- 1 jim users 11491848 May 7 12:36 /video/slackware64-current/slackware64/a/kernel-huge-5.10.35-x86_64-1.txz
-rw-r--r-- 1 jim users 47251200 May 7 12:41 /video/slackware64-current/slackware64/a/kernel-modules-5.10.35-x86_64-1.txz

root@bathroom:/home/jim/Desktop/liveslak# ls -l /video/slackware64-current/slackware64/a/lilo-24.2-x86_64-12.txz
-rw-r--r-- 1 jim users 431340 Feb 13 03:09 /video/slackware64-current/slackware64/a/lilo-24.2-x86_64-12.txz
My version of current is rsync'ed every night and the version of the script was pulled from slackware.uk less than a week ago. I'll see what bear has in case there's a difference.

There was a slight difference between the version. The 'ls ...' two lines above the symlink creation was removed. Still fails because
"'/mnt/slackwarelive/etc/localtime': File exists"

Last edited by jowski; 05-10-2021 at 12:45 PM.
 
Old 05-10-2021, 01:21 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,263

Rep: Reputation: 5854Reputation: 5854Reputation: 5854Reputation: 5854Reputation: 5854Reputation: 5854Reputation: 5854Reputation: 5854Reputation: 5854Reputation: 5854Reputation: 5854
What was the command you ran for make_slackware_live.sh?
 
Old 05-10-2021, 01:39 PM   #5
jowski
Member
 
Registered: Aug 2007
Posts: 76

Original Poster
Rep: Reputation: 5
Yes, it was. I think the problem is that there was a stale '/tmp/slackwarelive_staging' directory that wasn't picked up. I'm not sure, but I think I remember somewhere in the script that it reuses that directory unless you tell it to start from scratch. I deleted it and now it looks more like what I expected to happen.

Should know in a short time.

Jim

edit: It's the "-f" option for make_slackware_live.sh

Last edited by jowski; 05-10-2021 at 01:41 PM.
 
Old 05-10-2021, 02:46 PM   #6
jowski
Member
 
Registered: Aug 2007
Posts: 76

Original Poster
Rep: Reputation: 5
The fix for this problem was to get the most current version of 'make_slackware_live.sh' and use the "-f" option to regenerate all the squashfs modules. This takes care of the "symlink to /usr/share/zoneinfo/UTC" already existing, the patching problem (it must have been trying to patch an old version of liloconfig), and the "boy is that an old kernel" while mkinitrd was working.

Marking it solved!

Thanks Eric and bassmadrigal,
Jim
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
some questions about make_slackware_live.sh rob.rice Slackware 4 02-03-2017 06:34 PM
LXer: Ubuntu: 1936-1: Linux kernel (Raring HWE) vulnerabilities LXer Syndicated Linux News 0 08-22-2013 12:42 AM
Shell script to find a string and print x lines before and y lines after the string igorza Linux - Newbie 6 04-18-2013 04:31 PM
no sound on amilo xi 1546 fedora 7 aristotelis Linux - Hardware 13 09-25-2007 06:23 AM
printer printing vertical lines at beginning and end of lines makhand Linux - Hardware 0 09-02-2005 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration