LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 05: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, 05: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, 06: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, 06: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, 06: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, 06: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, 06: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, 06: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, 07: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, 07: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, 07: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


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


All times are GMT -5. The time now is 08:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration