LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-04-2020, 07:35 PM   #1
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.2/-current
Posts: 185

Rep: Reputation: 13
building a custom ISO for 14.2


I currently have slackware64 -current installed. I use R and PostgreSQL and a couple of other apps a lot. It seems that trying to get recent versions of those programs requires SBopkg and other repositories and other issues. One of the main things giving me problems is that slackpkg doesn't show what I've added and I lose track of what's installed and then I've got a conflict or something. I was thinking of switching to 14.2, since at least a couple of my problems would be fixed then with the more reliable slackpkg.

The problem with 14.2 was that that I couldn't get it to install. In that link, I said then that I thought LILO and/or UEFI was the problem. Now, I think the problem had something to do with one of the components of isolinux directory, like efiboot or isolinux.bin. I don't know that for sure, but based on what I could gather from the discussion in that previous link, there is a comment that the versions of isolinux are kind of dated and that may be why my computer wasn't getting to the actual boot of the ISO DVD.

When 14.2 wasn't working, I tried the -current version, with newer versions of the isolinux components and I got the installation to work. Thus, I was thinking, what if I took the -current isolinux directory and its components and replaced the isolinux in standard 14.2 64bit with that?

I did that and used the instructions in the README of the isolinux directory of the ISO to create a new ISO DVD that I then added to a USB. Here is the relevant code from the README:
Code:
mkisofs -o /tmp/slackware-dvd.iso \
  -R -J -A "Slackware Install" \
  -hide-rr-moved \
  -v -d -N \
  -no-emul-boot -boot-load-size 4 -boot-info-table \
  -sort isolinux/iso.sort \
  -b isolinux/isolinux.bin \
  -c isolinux/isolinux.boot \
  -eltorito-alt-boot -no-emul-boot -eltorito-platform 0xEF \
  -eltorito-boot isolinux/efiboot.img \
  -m 'source' \
  -V "SlackDVD" .

As an additional step, the ISO image may be processed to make it bootable
when written to a USB stick.  This processing will not impact the ISO's
ability to boot from DVD media.  Use the following command to do this:

isohybrid -u /tmp/slackware-dvd.iso
When I tried to run the install just now it gave me a menu with options for (I don't remember the exact verbiage, this is from memory)
'kernel huge
kernel huge KMS
search for any installed OS'

I selected kernel huge and then the next screen said something like
'need a kernel' (again, that's from memory and may not be exactly what it said)

It took me back to the menu listed just above and I tried the KMS option and I got the same error. Then I opted for the 'installed OS' and I'm back in Windows at the moment.

My question now is, should my idea to just copy and paste the isolinux directory in -current into the same place in 14.2 and create a custom ISO have worked? If not, what was I missing? Was there something in a script in the custom ISO that I should have edited to make it work?
 
Old 03-05-2020, 06:46 PM   #2
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
I hope this isn't an annoying suggestion, but have you tried emailing the PostgreSQL slackbuild maintainer and just asking if he'll bump the version up? If there's no response, fair enough but I've had a reasonably good success rate with this.
 
Old 03-05-2020, 09:55 PM   #3
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Here is a snippet from a script I use. I have used the script for many years. Through cron jobs I create new DVD ISO images with all of my local repo updates. Works fine with 14.2. I've used the script for so long that I don't remember where I grabbed the basic components -- perhaps from one of Eric's scripts.

Code:
mkisofs -o "$IMAGE_PATH/$ISO_NAME" \
  -sysid "Linux" \
  -appid "$APP_ID" \
  -volid "$VOL_ID" \
  -publisher "$PUB_ID" \
  -preparer "$PREP_ID" \
  -rock \
  -joliet \
  -iso-level 3 \
  -hide-rr-moved \
  -hide-joliet-trans-tbl \
  -sort isolinux/iso.sort \
  -eltorito-boot isolinux/isolinux.bin \
  -eltorito-catalog isolinux/isolinux.boot \
  -no-emul-boot \
  -sort isolinux/iso.sort \
  -b isolinux/isolinux.bin \
  -c isolinux/isolinux.boot \
  -boot-load-size $BOOTLOADSIZE \
  -boot-info-table \
  -exclude ./source \
  -exclude ./patches/source \
  -verbose .

isohybrid "$DVD_PATH/Slackware${TYPE}-$VERSION/$ISO_NAME"
 
Old 03-05-2020, 11:11 PM   #4
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.2/-current
Posts: 185

Original Poster
Rep: Reputation: 13
@bifferos, I don't think your suggestion is annoying. I've never contacted a maintainer before because I'd worry I was being annoying though. Maybe that's what you meant? I figure most of those people are have jobs and that they volunteer as maintainers and so are busy and don't need a newb like me asking them for stuff. My issue is more than the PostgreSQL thing, that was just one of the examples I threw in the post to show where I was coming from. I'll consider your suggestion. It's possible that the maintainers are waiting for the next major version? I have no idea where the cycle is concerning that.

@upnort, thanks for that script. I'll give that a whirl.
 
Old 03-06-2020, 04:26 AM   #5
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by deretsigernu View Post
I've never contacted a maintainer before because I'd worry I was being annoying though.
I'd never get annoyed about a version bump request for any of the (albeit two!) packages that I maintain there. I think the fact that a package does exist elsewhere (https://github.com/conraid/SlackBuil...ter/postgresql) would help things, that means someone has a working slack-build that just needs to be moved across.
 
Old 03-12-2020, 09:13 AM   #6
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.2/-current
Posts: 185

Original Poster
Rep: Reputation: 13
I tried to create the ISO using upnort's script. I get the same error message. This time I wrote it down.

Quote:
Loading huge.s kernel and installer initrd. Please wait...
error: invalid magic number.
error: you need to load the kernel first.

Press any key to continue...
 
  


Reply

Tags
-current, 14.2 64bit, installation, isolinux



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
Need help building the custom ISO your_shadow03 Linux - Newbie 7 10-30-2015 09:59 PM
Building a Custom Debian ISO sjahed Linux - Software 4 12-18-2014 11:11 PM
Creating Custom LiveOS ISO with Custom Files and RPMs niteshadw Red Hat 1 11-06-2012 10:44 AM
Extract ISO to HD, create ISO from Extractions, Boot ISO LemensTS Linux - Software 1 12-28-2010 01:10 PM
Does anyone Know how to open either .iso.rz or these .iso.xdelta,.iso.bz2,.iso.lzma?? maximalred Debian 5 06-09-2004 06:15 AM

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

All times are GMT -5. The time now is 09:42 PM.

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