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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.