LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-03-2009, 04:44 AM   #1
B-Boy
Member
 
Registered: Jan 2008
Posts: 103

Rep: Reputation: 15
add a script after installation first reboot


Hi

as you all know when doing an installtion the pc reboots and than configures the network and so on is it possibe for me to add a script to run after the reboot before the user name and network configuration
 
Old 04-03-2009, 04:52 AM   #2
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
As soon as the first installation is done u wont get a chance to insert a script before reboot.
Once on reboot u can insert a script & it can execute hence forth on reboot.
 
Old 04-03-2009, 05:13 AM   #3
B-Boy
Member
 
Registered: Jan 2008
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by maxy7710 View Post
As soon as the first installation is done u wont get a chance to insert a script before reboot.
Once on reboot u can insert a script & it can execute hence forth on reboot.
so how can i do this? Please keep in mind I need to do this before i setup the network and users
 
Old 04-03-2009, 05:21 AM   #4
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
We can do that.

as u said u have to insert this script before u setup network or add users.

During installation select dhcp while setting up network, if u want u can remove the LAN cable.

During installation only one user root by default will be created & no other.

so on successful installation, insert script then reboot if u want & then setup static network if u want & make required users.
 
Old 04-03-2009, 05:32 AM   #5
B-Boy
Member
 
Registered: Jan 2008
Posts: 103

Original Poster
Rep: Reputation: 15
sorry I forgot to mention the most important thing I am using and auto.xml to do the installation
 
Old 04-03-2009, 05:43 AM   #6
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
what distro r u using
when u say auto.xml, do u mean that u r doing it via kick start installation
 
Old 04-03-2009, 05:48 AM   #7
B-Boy
Member
 
Registered: Jan 2008
Posts: 103

Original Poster
Rep: Reputation: 15
i am using SLES and yes we just pop the cd in and it configures everything for us without human interaction at all
 
Old 04-03-2009, 05:50 AM   #8
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
So whats the problem u r facing now.

if you want u can add the required changes in the kick start file.
 
Old 04-03-2009, 06:23 AM   #9
B-Boy
Member
 
Registered: Jan 2008
Posts: 103

Original Poster
Rep: Reputation: 15
so what you saying is to add my changes into the auto.xml file which i have done but it only does this what i want after the network part is done and i need before than


here my problem I have a network driver i need to install intel e1000e. I have tried to add it into the initrd without any joy. So I decided to create and rpm that will insert the network module into the kernel. but it does not work either
 
Old 04-03-2009, 06:34 AM   #10
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
But even after the installation u can make required changes in the initrd image & boot thru the new image. i fell this will be a better option.
 
Old 04-03-2009, 06:44 AM   #11
B-Boy
Member
 
Registered: Jan 2008
Posts: 103

Original Poster
Rep: Reputation: 15
yeah i think i will use that option thanks
 
  


Reply



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
Reboot computer after partitition add jlinkels Linux - Software 22 01-12-2009 01:20 AM
how to script after reboot xcr Linux - General 1 03-06-2006 07:07 PM
startup script when reboot ust Linux - Software 5 09-10-2005 06:19 PM
Add Samba printer to OpenOffice; CUPS permissions change after reboot bax Linux - Software 4 01-19-2003 03:24 PM
How to add RAID1 without a reboot G../ Linux - Newbie 1 07-20-2002 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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