LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 03-21-2010, 02:37 AM   #1
lonesoac0
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 88

Rep: Reputation: 4
Cool Preseeding


Hello All,

I am trying to figure out how in the world to automate my Ubuntu 9.04 installation (IE timezone already selected, installation disk previously selected, etc). I have read that all I have to do is place preseed.cfg into the root of the initrd.img. Some how or another I keep hitting wall after wall when trying to place a file in this live file system. What is the easiest way to place the file in the initrd.img?
 
Old 03-21-2010, 06:59 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,576

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
The first time you make an initrd it makes a directory somewhere, initrd-tree, or the like. What happens when you add it to that, and run mkinitrd with limited options to reuse the existing tree?
 
Old 03-25-2010, 07:15 AM   #3
lonesoac0
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 88

Original Poster
Rep: Reputation: 4
Hmmm...perhaps I misstated the process that I am using...

Right now I am chrooted into a Ubuntu 9.04 LiveCD Desktop version. I do an ls and I can see the initrd.img in the / dir. I have tried copying the .img using a non-chrooted CLI to my home dir for mounting/editing. The result is "cp: cannot stat '/media/blah/blah/blah/initrd.img': No such file or directory.

I have also tried the steps on this site http://www.thegeekstuff.com/2009/07/...te-initrd-img/ I modified the first step to cp /blah/blah/initrd.img .

I still get No such file or directory from both chrooted and non-chrooted shells.

Anywho, it sounds like you were trying to see what I was doing when I was making a completley new initrd.img. How do I do that?
 
Old 03-26-2010, 05:30 AM   #4
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,576

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
Your end goal is to automate installing Ubuntu. Am I correct in thinking you want to do it via pxe? That goes something like
1. set network boot a,d turn on a blank box
2. The box politely asks who is gonna give it a kernel. Your server responds
3. Box boots the kernel, gets on the net again and asks for an OS. For this stage you probably need your preseed file
4. box gets an OS and installs it

There's many docs on that. Here's the Slackware one

wget ftp://ftp.heanet.ie/mirrors/slackwar...README_PXE.TXT

Use mkinitrd in ubuntu to write that initrd. just add the file to the command line or to wherever your initrd tree is. Watch for version issues with the kernel.
 
Old 03-27-2010, 12:13 AM   #5
lonesoac0
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 88

Original Poster
Rep: Reputation: 4
I want to do all of this nativley on CD. I am not a running PXE server on my network. I have tried and failed at a PXE server.
 
Old 03-28-2010, 06:02 AM   #6
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,576

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
Quote:
Originally Posted by lonesoac0 View Post
I want to do all of this nativley on CD. I am not a running PXE server on my network. I have tried and failed at a PXE server.
I hereby back out if you're going inventing on your own. AFAIK, PXE is the only way to do that, and relies on compatible dhcp servers. Read that doc I sent you. It is a good approach. If you want to have another go at pxe, and let us know where it fails, I'll throw in what I can.

Problems are: PXE from the Bios is pretty stupid, and you have to run a compliant dhcp server on your net or you are dead in the water; Network boot has to recognise the nic on startup, because it's a totally new system asking totally new questions as once you boot, you no longer are on bios; if a firewall is in the way, you are probably disabled; You also need disk access - slack uses nfs, other systems use different things.
 
Old 03-29-2010, 09:03 PM   #7
lonesoac0
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 88

Original Poster
Rep: Reputation: 4
Hmmm

Ok, I will take a more detailed look at the slackware site you sent.
 
  


Reply

Tags
customization, ubuntu


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
Automatic installation using preseeding: Changing MAC-address SeppJ Ubuntu 0 06-10-2009 01:18 PM
preseeding? plesaleza Debian 8 08-22-2007 07:04 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration