LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-11-2013, 10:57 AM   #1
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Rep: Reputation: 61
kickstart on non-networked system


I have some systems that I need to configure and install CentOS 6 on and they can't be connected to any network. I have two questions related to this.

1. From my reading of the documents, I should place my kickstart file (ks.cfg) in the /isolinux directory before burning to disk. I've also been told it should be in the root (/) partition instead. Anyone have a suggestion which is correct. Maybe I should just put it in both locations.

2. I have some tar files and scripts to run in the post section. If I burn this to the dvd under /myscripts, how would I reference that in the %post section? I wasn't able to get a clear picture of that yet.

Regards,

Brad
 
Old 12-12-2013, 07:55 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
pretty sure it's the root, but not sure about that.

As for the /myscripts part though, you'd use a %post section with the --nochroot option added to it, so the installed system will be available under "/mnt/sysimage/" and the rest of the installation media will be at /
 
1 members found this post helpful.
Old 12-13-2013, 08:47 AM   #3
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
OK. I'll just put the kickstart file in both locations to be safe.

For the %post --nochroot portion, I'm thinking I would do:

Code:
%post --nochroot
mkdir /mnt/sysimgage/var/tmp/mystuff
cp /myscripts/* /mnt/sysimgage/var/tmp/mystuff
chroot /mnt/sysimgage /var/tmp/mystuff/master.sh
I think this will create a sub-directory to /var/tmp; copy all of my scripts and tar files to it; then run the master script within a chrooted environment. Sound correct?
 
Old 12-13-2013, 09:16 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i'd probably put the last line in a new normal chrooted %post butit probably doesn't make much difference.
 
1 members found this post helpful.
Old 12-13-2013, 11:55 AM   #5
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
Can you put two %post sections in, or am I misunderstanding your statement?
 
Old 12-13-2013, 04:14 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yes, as many as you want.
 
1 members found this post helpful.
Old 12-16-2013, 04:38 AM   #7
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
Thanks so much!
 
  


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
Installing a CentOS system with kickstart ghostsh Linux - Server 2 08-21-2013 09:28 AM
Simple mirroring networked file system? pileofrogs Linux - Server 3 04-14-2010 09:44 PM
Printing to networked system........................ cybersam45 Linux - Networking 11 05-07-2009 07:53 PM
where is system-config-kickstart? csaunders Red Hat 3 06-05-2007 01:56 PM
System-config-kickstart core 5 nitrohuffer2001 Linux - Software 2 10-26-2006 11:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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