HP Integrity rx1620 SmartSetup Scripting Toolkit Deployment Guide: HP Integrit - Page 37

Reviewing the main_toolkit_launch.sh Script, Editing the linux-setup.sh Script, main_toolkit_launch.sh

Page 37 highlights

ssstk_init=/bootstrap ssstk_mount=/dev/sda1 ssstk_script=scripts/main_toolkit_launch.sh ssstk_action=linux" NOTE: During the pre-boot portion of the Linux booting sequence, you may encounter a syntax error in each line of the script, which may indicate that there are extra line-feed characters in the boot loader file. If you modify the elilo.conf file using a Windows-based text editors, you must ensure that the modified script files are UNIX file format by using a utility to convert the script files to UNIX format (such as dos2unix) or by saving the file in UNIX file format. Reviewing the main_toolkit_launch.sh Script The main_toolkit_launch.sh script sets up the toolkit environment, prompts you to read the hardware configuration or install the OS, and responds to your input. Setting up the environment involves copying the repository to the RAMdisk, making sure the utilities are executable, creating an inventory of the hardware (hardware discovery). The script obtains your input by reading the sstk_action variable in the elilo.conf file or your choice in the toolkit menu. • When you select linux, the script invokes the linux-setup.sh to launch the Linux installation. chmod +wx "$RAMDRIVE/scripts/linux-setup.sh" if ! eval "$RAMDRIVE/scripts/linux-setup.sh"; then write_error "Linux setup failed" return 1 fi • When you select readhwconfig, the following tasks are executed in the capture.sh script: - Run cpqacuxe to get the configuration of the storage array controller. The script writes this data to the acu.ini file. /usr/sbin/cpqacuxe -c "${CONFIGDIR}/acu.ini" - Run conrep to get the EFI environment variables from the server configuration. The script writes this data to the conrep.dat file. ./conrep --read -f ${CONFIGDIR}/conrep.dat - Run the hpqlarep utility to enable or disable the EFI boot setting on QLogic 2 GB or 4 GB HBAs. The script writes this data to the hba-qlogic.ini file as follows: $UTILITIES/hpqlarep /S "${CONFIGDIR}/hba-emulex.ini --- Run the hplpcfg utility to enable or disable the EFI boot setting on HP Emulex HBA. The script writes this data to "hba-emulex.ini" file. $UTILITIES/hplpcfg /le "${CONFIGDIR}/hba-emulex.ini * If you select lsi, then the script will run the "raid1-lsi.sh" script to create RAID1 to the LSI 1068 controller. This option will only be available if there is a 1068 controller in the system. The disk connected to the controller will be turned into a single disk using RAID1. If you maintain the repository structure suggested in this document, you do not need to make any changes in this script. If you set the sstk_action variable in the elilo.conf file, you do not need to interact with the script (it runs silently to execute the option you select (readhwconfig or linux). Editing the linux-setup.sh Script The linux-setup.sh script starts the Linux installation process after it partitions the hard disk, and then it copies the OS files into the appropriate partitions. Reviewing the main_toolkit_launch.sh Script 37

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85

ssstk_init=/bootstrap ssstk_mount=
/dev/sda1
ssstk_script=scripts/main_toolkit_launch.sh
ssstk_action=linux
"
NOTE:
During the pre-boot portion of the Linux booting sequence, you may encounter a syntax
error in each line of the script, which may indicate that there are extra line-feed characters in the
boot loader file. If you modify the
elilo.conf
file using a Windows-based text editors, you
must ensure that the modified script files are UNIX file format by using a utility to convert the
script files to UNIX format (such as dos2unix) or by saving the file in UNIX file format.
Reviewing the
main_toolkit_launch.sh
Script
The
main_toolkit_launch.sh
script sets up the toolkit environment, prompts you to read
the hardware configuration or install the OS, and responds to your input. Setting up the
environment involves copying the repository to the RAMdisk, making sure the utilities are
executable, creating an inventory of the hardware (hardware discovery).
The script obtains your input by reading the
sstk_action
variable in the
elilo.conf
file or
your choice in the toolkit menu.
When you select
linux
, the script invokes the
linux-setup.sh
to launch the Linux
installation.
chmod +wx "$RAMDRIVE/scripts/linux-setup.sh"
if ! eval "$RAMDRIVE/scripts/linux-setup.sh";
then
write_error "Linux setup failed"
return 1
fi
When you select
readhwconfig
, the following tasks are executed in the
capture.sh
script:
Run
cpqacuxe
to get the configuration of the storage array controller. The script writes
this data to the
acu.ini
file.
/usr/sbin/cpqacuxe -c "${CONFIGDIR}/acu.ini"
Run
conrep
to get the EFI environment variables from the server configuration. The
script writes this data to the
conrep.dat
file.
./conrep --read -f ${CONFIGDIR}/conrep.dat
Run the
hpqlarep
utility to enable or disable the EFI boot setting on QLogic 2 GB or
4 GB HBAs. The script writes this data to the
hba-qlogic.ini
file as follows:
$UTILITIES/hpqlarep /S "${CONFIGDIR}/hba-emulex.ini
--- Run the hplpcfg utility to enable or disable the EFI boot
setting on HP Emulex HBA.
The script writes this data to
hba-emulex.ini
file.
$UTILITIES/hplpcfg /le "${CONFIGDIR}/hba-emulex.ini
* If you select lsi, then the script will run the
raid1-lsi.sh
script
to create RAID1 to the LSI 1068
controller. This option will only be
available if there
is a 1068 controller in the system. The disk
connected to
the controller will be turned into a single disk using RAID1.
If you maintain the repository structure suggested in this document, you do not need to make
any changes in this script. If you set the
sstk_action
variable in the
elilo.conf
file, you do
not need to interact with the script (it runs silently to execute the option you select
(
readhwconfig
or
linux
).
Editing the
linux-setup.sh
Script
The
linux-setup.sh
script starts the Linux installation process after it partitions the hard
disk, and then it copies the OS files into the appropriate partitions.
Reviewing the main_toolkit_launch.sh Script
37