LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 01-31-2008, 12:01 PM   #1
ilo
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Rep: Reputation: 0
RHEL 5 Kickstart copying files from DVD & inserting comments with sed


Hello everyone,

First post here.

I am trying to copy files from the installation DVD over to the new filesystem.
I understand that the system is new and it is difficult to copy from.
Here is the post section of my kickstart:

Code:
%post nochroot --log=/tmp/post.log

#Enable / Disable Services
/sbin/chkconfig --level 0123456 apmd off
/sbin/chkconfig --level 0123456 pcmcia off
/sbin/chkconfig --level 0123456 bluetooth off
/sbin/chkconfig --level 0123456 hidd off
/sbin/chkconfig --level 0123456 hplip off
/sbin/chkconfig --level 0123456 ip6tables off
/sbin/chkconfig --level 0123456 isdn off
/sbin/chkconfig --level 0123456 pcscd off
/sbin/chkconfig --level 0123456 rhn-virtualization-host off
/sbin/chkconfig --level 0123456 xend off
/sbin/chkconfig --level 0123456 xendomains off
/sbin/chkconfig --level 35 httpd on
/sbin/chkconfig --level 35 vsftpd on
/sbin/chkconfig --level 2345 ntpd on
/sbin/chkconfig rlogin on
/sbin/chkconfig rsh on

#Backing up Files that will be changed
mkdir /backup/original_files
cp /etc/inittab /backup/original_files/inittab
cp /etc/fstab /backup/original_files/fstab
cp /etc/udev/rules.d/50-udev.rules /backup/original_files/50-udev.rules
cp /etc/ntp.conf /backup/original_files/ntp.conf

#Copying Files
mkdir /mnt/up
mkdir /backup/hp
mount /dev/dvd /mnt/up
cp /mnt/up/HP_Insight_manager/hpasm-7.9.1-13.rhel5.x86_64.rpm /backup/hp/hpasm-7.9.1-13.rhel5.x86_64.rpm
cp /mnt/up/ntp_file/ntp.conf /etc/ntp.conf

umount /mnt/up
/usr/bin/cp /tmp/post.log /mnt/sysimage/root/post.log
Any help appreciated
 
  


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
DVD copying of files - I/O error feedmehoney Linux - Desktop 1 07-10-2007 07:10 AM
Inserting spaces using SED/AWK ? aravindts Programming 4 09-29-2006 05:28 AM
Cpu usage while copying files from DVD TheCondor389 Suse/Novell 2 01-07-2005 12:16 PM
Kdevelop IDE & copying files carlosmg Programming 0 12-15-2003 05:30 PM
How sed strip /* comments aaronzh Programming 1 06-05-2003 05:16 PM


All times are GMT -5. The time now is 04:40 AM.

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