Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 01-31-2008, 12:01 PM   #1
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:

%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


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 / openSUSE 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 > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration