Ignite-UX Custom Configuration files
the Basic tab. The form us
ed in the next example to initialize a list of possible values allows the
Ignite-UX GUI to modify the list later.
Further in the configuration file, when giving _hp_disk_layout a final value you only assign its
value using init. When using the form "init _hp_disk_layout="…" the Ignite-UX GUI is still
allowed to modify the value. If you instead define "_hp_disk_layout="…"" without the init,
the Ignite-UX GUI cannot change this value. If the Ignite-UX GUI were not able to change the value
of _hp_disk_layout, no changes made in the Ignite-UX GUI to file system attributes are applied
to the system
19
.
This is because the Ignite-UX GUI must change the value of _hp_disk_layout to "Modified LVM
Layout", "Modified VxVM Layout", or "Modified Whole-Disk Layout" when changes have been
made. If the Ignite-UX GUI is not allowed to change the variable, you cannot keep any file system
customizations. This concept becomes very important when creating custom configuration files.
#######################################################################
# Any _hp_disk_layout variable setting besides those below will disable
# the default disk layout described in this file. This can be
# done if a custom disk layout is defined elsewhere.
#
# For PA architecture only
is_hppa {
_hp_disk_layout = {
"Whole disk (not LVM) with HFS",
"Logical Volume Manager (LVM) with HFS",
"Logical Volume Manager (LVM) with VxFS",
"VERITAS Volume Manager (VxVM) with VxFS"
}
}
You can now set the variable _hp_disk_root to the value of _hp_primary_path, assuming
that the device that _hp_primary_path points to exists and _hp_root_disk does not already
have a value. You can use an Extended Regular Expression (ERE)
20
to see if _hp_root_disk is
set to any value
21
.
#
# Set the default root disk to the current primary path. The
# _hp_primary_path will be "" if it was set to a non-existent dev.
# also don't reset the _hp_root_disk if it was initialized in
# a different config file and non-null (see 15654FSDdt). Use
# the ~ operator instead of == to detect if _hp_root_disk is not
# yet set (See FSDdt22058).
#
(_hp_primary_path != "" & !(_hp_root_disk ~ ".*"))
{
init _hp_root_disk=_hp_primary_path
}
19
The itool command Ignite-UX GUI accepts changes to file system attributes and does not caution you, but no file system
attribute changes made in the Ignite-UX GUI are applied to the system.
20
For more information regarding ERE, refer to regexp(5).
21
The ERE ".*" means zero or more of any character so it matches a zero length string.
46