Ignite-UX Custom Configuration files

_hp_disk_layout
The _hp_disk_layout string variable is set by the Ignite-UX GUI to indicate which disk layout
(LVM, whole-disk, etc) that you have selected. As configurations are saved, the list of values that it
can have is increased to contain any modified layouts.
There are ways you should and should not define this variable. The following is the correct way to
define the _hp_disk_layout variable; this assumes that _hp_root_disk has already been set.
_hp_disk_layout= { "N4000 with 9Gb disk", "N4000 with 18Gb disk",
"N4000 with 36Gb disk", "N4000 with 72Gb disk" }
(model ~ "9000/N4000")
{
(disk[_hp_root_disk].size<10000Mb)
{
init _hp_disk_layout=" N4000 with 9Gb disk"
}
else
{
(disk[_hp_root_disk].size<20000Mb)
{
init _hp_disk_layout=" N4000 with 18Gb disk"
}
else
{
(disk[_hp_root_disk].size<400000Mb)
{
init _hp_disk_layout=" N4000 with 36Gb disk"
}
else
{
init _hp_disk_layout=" N4000 with 72Gb disk"
}
}
}
}
The preceding configuration correctly defines the settings for _hp_disk_layout to enable the
Ignite-UX GUI to modify the disk configuration. If you want to set _hp_disk_layout so you
cannot make any changes using the Ignite-UX GUI, follow the next example. In this configuration,
you cannot change the disk layout after it has been selected by these tests:
_hp_disk_layout= { "N4000 with 9Gb disk", "N4000 with 18Gb disk",
"N4000 with 36Gb disk", "N4000 with 72Gb disk" }
(model ~ "9000/N4000")
{
(disk[_hp_root_disk].size<10000Mb)
{
_hp_disk_layout="N4000 with 9Gb disk"
}
else
{
(disk[_hp_root_disk].size<20000Mb)
{
_hp_disk_layout="N4000 with 18Gb disk"
}
else
{
88