跳转至

字符串设置类型

名称

  :string

示例

显示启动文件名

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

显示 DHCP 选项 40

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

设置 SAN 根路径

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

描述

表示一种字符串类型的设置。

另请参阅

备注

字符串设置可以包含空格和其他可能在 URI 解析过程中引起问题的 "特殊" 字符。你可以通过请求以 uristring 设置形式展开来避免这些潜在问题。例如,如果你想把 SMBIOS product 名称传递给运行在 Web 服务器上的启动脚本,可以使用

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

这将确保任何 "特殊" 字符都按需要进行 URI 编码。例如,如果 SMBIOS 产品名称是 "PowerEdge R210",则上述命令将展开为

  chain http://boot.ipxe.org/demo/boot.php?product=PowerEdge%20R210