LinuxQuestions.org
Visit Jeremy's Blog.
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 12-09-2004, 11:40 AM   #1
spaguzz
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
Initrd.img


I'm making a LiveCD from the Slackware 10.0 using a guide find online. In a particular point i need to specify the initrd.img to use... but what initrd.img I MUST use.?

Second question: to install my prefer package I use installpkg comand and put them in my LIVE directory... How am I certain I really can use what installed?

Have someone any ideas to make livecd easy??? or explain the main operations to do.,...???

Please help me...
 
Old 12-09-2004, 03:21 PM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
I've never setup a LiveCD before, but I'd persume that you only need the initrd to get booted. An initrd is a very small self contained root file system that the kernel loads into RAM to get everything going initially. Most of them contain Busybox, which is an all in 1 binary capable of emulating almost all the core linux shell utilities. They are popular for bootable floppies, CDs & etc, since they are so small. You can either build your own from scratch or use some other one. The one for the Slackware installation CD is in the Slackware package tree at isolinux/initrd.img. It's rather large for an initrd, at over 6MB decompressed, but should be fine for a CD. You'll probably want to customize it (if you use it) though since it's customized for installing Slackware. It's also gzip'ed, so you'll have to decompress it before you can mount it.
Code:
gunzip -S .img initrd.img
You can then mount it on a loop device like so:
Code:
mount initrd /path/to/mountpoint -o loop
I'm not sure I'd use it for what you're wanting to do though, since all extras in it may complicate the learning curve a bit. But nevertheless, it will give you an idea of how it works.

Slackware also comes with a utility called mkinitrd for working with them.

Second question:
I assume you're installing them with:
Code:
installpkg -root /path/to/liveCD packagename
? If so, the biggest thing will be working out the dependancies since the Slackware packages aren't built static. Patrick V. almost certainly has a program for automating this but whether or not it's included in Slackware I have no idea. You could use ldd & strace to do it manually, or write a shell script to use them, on every single binary you install in your LiveCD, but man what a daunting task. I suppose you could just include all the "required" packages for Slackware and build off that as well. That's probably the easiest way, since you're basing it off of Slackware and the documentation in Slackware will have most of that info. If all you need is a command line LiveCD, then you probably want have to look any further than Busybox. You'd be surprised what it can do. But if you're wanting something full-blown with X and Slackware based, then you got a bit of work to do.

As far as verifing that what you install to it actually works, you can chroot into the LiveCD directory once you have a shell installed in it and test them for yourself without ever writing a CD. That's also a way of verifing that you have all the required libs & dependancies in place as well.

At the end of the day, I'd say there is no "easy" way to do it unless you've done it before and have added some automation to the process. Have fun!

Last edited by DaHammer; 12-09-2004 at 03:23 PM.
 
Old 12-10-2004, 02:46 AM   #3
spaguzz
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks

ok ok I'll try this way, patience and... time!

Thanks a lot...
 
Old 12-16-2004, 03:13 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
What guide are you using? Post a link please.
There used to be a note from patrick V. in one of the old trees at ftp.slackware.com, which told how to create the Slackware LIVE CD#2, including the command line syntax used for mkzftree and mkzisofs. Does anyone have that document?
What syntax are YOU using?

Last edited by gnashley; 12-16-2004 at 03:16 AM.
 
Old 12-16-2004, 03:35 AM   #5
spaguzz
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Original Poster
Rep: Reputation: 0
I've used this one:

http://www.osnews.com/story.php?news_id=3747

...
 
  


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
Initrd.img spaguzz Linux - Software 1 12-09-2004 03:21 PM
Kernel initrd.img? microsoft/linux Debian 15 10-29-2004 12:35 PM
What's an initrd.img? hotel-lima Linux - Newbie 2 06-11-2004 05:50 PM
initrd.img php_rocks Linux - Newbie 1 08-31-2003 11:20 PM
Grub and initrd.img homestead1000 Linux - Software 2 07-25-2003 02:39 PM

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

All times are GMT -5. The time now is 09:11 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