Why hostname parameter is not working in the prescript during installation ?

Solution Verified - Updated -

Issue

  • Hostname parameter is not working in prescript
  • volume groups are not getting the expected names.
hostname=`hostname -s` 
network --bootproto=static --ip=192.168.0.1 --netmask 255.255.255.0 --gateway 192.168.0.254 --nameserver 192.168.0.254 --hostname server.example.com part pv.3 --size=2000 volgroup vg_`$hostname` pv.3 logvol /test --vgname=vg_`$hostname` --size=1000 --name=lv_`$hostname` --grow EOF
%end

Environment

  • Red Hat Enterprise Linux 6.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content