LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   make_slackware_live.sh FAILED at lines 1546, 1548, and 1936 (https://www.linuxquestions.org/questions/slackware-14/make_slackware_live-sh-failed-at-lines-1546-1548-and-1936-a-4175694946/)

jowski 05-10-2021 02:31 AM

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.

Alien Bob 05-10-2021 06:36 AM

Quote:

Originally Posted by jowski (Post 6249620)
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.

jowski 05-10-2021 12:23 PM

Quote:

Originally Posted by Alien Bob (Post 6249664)
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"

bassmadrigal 05-10-2021 01:21 PM

What was the command you ran for make_slackware_live.sh?

jowski 05-10-2021 01:39 PM

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

jowski 05-10-2021 02:46 PM

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


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