Writing your own helper script

6.10 LPAR mode z/VM guest

You can write your own helper script for device drivers that provide logical devices. The helper script must conform to a set of rules.

  • The script must accept the name of the target directory as an argument. From this specification, it must determine a suitable base device.
  • The script must write the following base device <parameter>=<value> pairs to stdout as ASCII text. Each pair must be written on a separate line.
    • targetbase=<targetbase_node>
    • targettype=<type> where type can be LDL, CDL, FBA, or SCSI.
    • targetgeometry=<cylinders>,<heads>,<sectors> (For LDL and CDL only)
    • targetblocksize=<blocksize>
    • targetoffset=<offset>
  • The script must be named zipl_helper.<device> where <device> is the device name as specified in /proc/devices.
  • The script must be in /lib/s390-tools.