User's Guide
#
# Add a new disk layout type
#
_hp_disk_layout += { "Custom configuration for Product XYZ" }
The test on sw_sel Product XYZ to the variable set _hp_disk_layout to Custom
configuration for Product XYZ is only evaluated once. If Product XYZ is not selected for
installation by the time this configuration file is parsed, you must manually change the disk layout to
Custom configuration for Product XYZ during installation. That is, after selecting the
software products that the disk configuration depends on, if they are to be installed, to make sure
that the optional logical volume is created.
To make the disk configuration modifiable, remember to use init before the
_hp_disk_layout.
61
#
# Automatically select the disk layout if product XYZ is being
# installed.
#
(sw_sel "Product XYZ") {
init _hp_disk_layout = "Custom configuration for Product XYZ"
62
}
Next is the definition of the disk layout Custom configuration for Product XYZ:
( _hp_disk_layout == "Custom configuration for Product XYZ" ) {
First, make sure that all disks are greater than 36GB. An error will be issued if there are smaller
disks because this disk layout is only intended for disks 36GB or higher.
Note:
This prevents the user from proceeding with a
n installation (or force a
non-interactive installation to become interactive) if the size of the root
disk is less than what is being tested for63.
Looking for errors where possible can help ensure that a configuration does not allow someone to
do something that cannot work.
(disk[_hp_root_disk].size < 34000Mb) {
error+="This configuration cannot be used with disks of less than
36Gb"
61
Without "init" in front of the _hp_disk_layout variable, the Ignite-UX GUI cannot make changes to the disk
configuration since all changes (in this case) are saved into the disk layout called "Modified LVM Layout". If the Ignite-UX
GUI cannot change _hp_disk_layout, then the name of the disk layout cannot be changed and no file system changes
asked for on the file system tab are honored.
62
You cannot not have an effects relationship between a variable and a software selection (or a use model). If this software
product is selected and the disk layout is set to "Custom configuration for Product XYZ", unselecting the software does not
cause the disk layout to be reevaluated.
63
Keep in mind that GB for disks is not 36*1024*1024*1024 (38654705664) bytes but approximately
36*1000*1000*1000 (36000000000) bytes, a difference of over 2GB. This test, to verify whether the size is less than
34000MB (35651584000 bytes), is approximately correct.
132