Why hostname parameter is not working in the prescript during installation ?
Issue
Hostname
parameter is not working inprescript
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.