The following sections describe the variables and parameters used in updating resource files:
The following environment variables are used in imaging scripts and must not be modified:
Table 65-1 Imaging Script Variables
Variable |
Definition |
---|---|
ACTIVEPARTITION |
Device of the active OS partition. |
CDBOOT |
YES = Booted from a CD. |
DISABLEZEN |
1 = Disable the ZENworks partition. |
ENABLEZEN |
1 = Re-enable the ZENworks partition. |
ZENDEVICE |
Device name of the ZENworks partition. |
ZENPARTBOOT |
YES = Booted from ZENworks partition. |
The following environment variables can be modified or set in the settings.txt file:
Table 65-2 Environment Variables
Variable |
Definition |
---|---|
HDPARM |
NO = Do not set hdparm parameters. |
IMGCMD |
Imaging command to run instead of the img a command. |
MANUALREBOOT |
YES = Do not automatically reboot. |
PARTITIONSIZE |
Size in MB to create the ZENworks partition. |
PROXYADDR |
IP/DNS address of the ZENworks Imaging server. |
PROMPT |
Go to the bash prompt after imaging is complete. |
Table 65-3 Linuxrc Parameters
Variable |
Definition |
---|---|
netsetup |
dhcp = Use DHCP. 1 = Static IP. |
HostIP |
Static IP address to use. |
NetMask |
Network mask. |
Gateway |
Network gateway. |
HostName |
Host name to assign. |
Nameserver |
DNS name server. |
Domain |
Domain suffix. |
NetDevice |
ethx = Define which network device to configure. |
The linux environment variables used by the imaging engine are as follows:
Table 65-4 Image Engine Variables
Variable |
Definition |
---|---|
DEVELOPER_LOG |
“A” creates a verbose imglog debug file. |
ZENIMGLOG |
“A” creates a less verbose imglog debug file. |
ZEN_IGNORE_GEO_MISMATCH |
Ignore geometry device mismatches when restoring raw image formats. |
NOABORTBUTTON |
If defined, do not display the Abort button during imaging. |
You can define the variables in one of the following ways:
Boot the device to the imaging maintanence mode and run the following command from the bash prompt:
export variable= value
For example, if you do not want to display the Abort button during imaging, run the following command:
export NOABORTBUTTON=1
Modify the /srv/tftp/z_auto.cfg or the /srv/tftp/z_maint.cfg file (or both) on the server to define the variable by adding the following line at the end of the Append command.
variable= value
For example, NOABORTBUTTON=1