Re: trying to create dirs in kickstart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.
Have you tried using the IP address of your  nas.summitnjhome.com device? In my experience the IP address will always work.

James
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: bluethundr <bluethundr@xxxxxxxxx>
Sender: kickstart-list-bounces@xxxxxxxxxx
Date: Sun, 16 Jan 2011 00:49:43 
To: <kickstart-list@xxxxxxxxxx>
Reply-To: Discussion list about Kickstart <kickstart-list@xxxxxxxxxx>
Subject: trying to create dirs in kickstart

hello kickstart!

 I am attempting to creating some mount points on the machines I
kickstart and then mount those volumes using the mount command in teh
%post section of my ks file. But that part of the kickstart isn't
working.

# Kickstart file automatically generated by anaconda.

install
# Use NFS installation media
nfs --server=192.168.1.250 --dir=/mnt/DVD64-1
lang en_US.UTF-8
network --device eth0 --bootproto dhcp --nameserver
192.168.1.44,71.250.0.12,4.2.2.2 --hostname newhost
rootpw --iscrypted $1$ptZMQiFw$hYQMhYk0XdOexGpc.bVWH/
firewall --enabled --port=22:tcp,80:tcp
authconfig --enableshadow --enablemd5
selinux --disabled
timezone America/New_York
bootloader --location=mbr --driveorder=xvda --append="console=xvc0"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all --initlabel
part /boot --fstype ext3 --size=100 --ondisk=xvda
part pv.2 --size=0 --grow --ondisk=xvda
volgroup VolGroup00 --pesize=32768 pv.2
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00
--size=272 --grow --maxsize=544
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow

%post
# Create mount dir
mkdir /mnt/config

# Mount config dir
mount nas.summitnjhome.com:/mnt/nas/config /mnt/config

# transfer files
rsync -avzp /mnt/config/etc/* /etc/

# Add repos
# EPEL
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

# Remi
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

# DAG
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

# CentALT
rpm -Uvh http://centos.alt.ru/pub/repository/centos/5/i386/centalt-release-5-3.noarch.rpm

# unmount config dir
umount /mnt/config

# remove config dir
rm -rf /mnt/config

#update the system
yum repolist
yum update -y
yum upgrade -y


%packages
@base
@cluster-storage
@clustering
@core
@editors
@legacy-network-server
@mail-server
@network-server
@news-server
@server-cfg
@text-internet
@web-server
@smb-server
koan
puppet
keyutils
trousers
fipscheck
device-mapper-multipath
kmod-gnbd-xen
kmod-gfs-xen

Could someone offer some advice?

thanks!

-- 
GPG me!!

gpg --keyserver pgp.mit.edu --recv-keys F186197B

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux