String setting type

Name

  :string

Examples

Display the boot filename

  iPXE> show filename
  net0.dhcp/filename:string = http://boot.ipxe.org/demo/boot.php

Display DHCP option 40

  iPXE> show 40:string  # Option 40 - NIS domain name
  net0.dhcp/40:string = nis.example.com

Set the SAN root path

  iPXE> set root-path iscsi:10.0.0.6::::iqn.2010-04.org.ipxe.dolphin:storage

Description

Represents a type of setting that is a string.

See also

Notes

A string setting can contain spaces and other “special” characters that can cause problems during URI parsing. You can avoid these potential problems by requesting expansion as a uristring setting. For example, if you want to pass the SMBIOS product name to a boot script running on a web server, you could use

  chain http://boot.ipxe.org/demo/boot.php?product=${product:uristring}

This will ensure that any “special” characters are URI-encoded as necessary. For example, if the SMBIOS product name is “PowerEdge R210”, then the above command will expand to

  chain http://boot.ipxe.org/demo/boot.php?product=PowerEdge%20R210
cfgtype/string.txt · Last modified: 2011/03/24 02:46 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL https://ipxe.org
References to "iPXE" may not be altered or removed.