Assigning machinename to volumegroup

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

 



Hi

I am trying to give my volume group a more specific name in the following way:

 

install
text
network --bootproto dhcp
url --url http://satellite.example.com/ty/rAhbfOeG
lang en_GB
langsupport --default en_GB en_GB
keyboard uk
mouse none
device scsi cciss
zerombr yes
clearpart --all
bootloader --location mbr
timezone --utc Europe/London
auth --enablemd5 --enableshadow
selinux --disabled
reboot
firewall --disabled
skipx
 
%packages --resolvedeps
 
-telnet
ntp
-bluez-utils
-anacron
@ Core
-bluez-gnome
 
%pre
HOSTNAME=$(grep HOSTNAME /tmp/netinfo|cut -d= -f2|cut -d. -f1)
vgn=vg-$HOSTNAME
 
cat << EOF > /tmp/partinfo
partition /boot --fstype=ext3 --size=200
partition pv.01 --size=1000 --grow
partition swap --size=1000   --maxsize=2000
 
volgroup $vgn pv.01
 
logvol /        --vgname=$vgn --name=rootvol --size=5120
logvol /home    --vgname=$vgn --name=homevol --size=1024
logvol /tmp     --vgname=$vgn --name=tmpvol  --size=1024
logvol /var     --vgname=$vgn --name=varvol  --size=1536
logvol /var/log --vgname=$vgn --name=logvol  --size=30720
logvol /var/tmp --vgname=$vgn --name=vartmpvol --size=1024
 
EOF
 

However, I am still getting prompted for the partitioning details. The script generates the file and the contents looks fine.

 

I am not sure what I am doing wrong.

 

I am using Satellite 5.0. I have removed the partitioning details from the satellite interface and added it in the pre-script. I assumed that anakonda would then as option B look into /tmp/partinfo, but that does not seem to be the case.

 

Any pointers in the right direction would be appreciated.

 

Regards

_______________________________________________
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