This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cmd:boot [2012/03/24 19:24] mcb30 |
cmd:boot [2012/03/24 19:29] mcb30 |
||
---|---|---|---|
Line 45: | Line 45: | ||
If this command is executed from within an iPXE [[:scripting|script]], then the URI will be interpreted as being relative to the URI of the script itself. For example, if the script ''%%http://boot.ipxe.org/demo/boot.php%%'' contains the line | If this command is executed from within an iPXE [[:scripting|script]], then the URI will be interpreted as being relative to the URI of the script itself. For example, if the script ''%%http://boot.ipxe.org/demo/boot.php%%'' contains the line | ||
- | chain pxelinux.0 | + | boot pxelinux.0 |
then iPXE will download and boot ''%%http://boot.ipxe.org/demo/pxelinux.0%%''. | then iPXE will download and boot ''%%http://boot.ipxe.org/demo/pxelinux.0%%''. | ||
Line 65: | Line 65: | ||
===== Notes ===== | ===== Notes ===== | ||
- | The commands ''boot'', ''imgexec'' and ''chain'' are identical. In older versions of iPXE, ''boot'' and ''imgexec'' will accept only the name of an already-downloaded image, and ''chain'' will accept only the URI of a new image to be downloaded. | + | The commands ''boot'', ''imgexec'' and ''chain'' are identical. |
- | For the sake of backwards compatibility with existing scripts, you can specify a new name for the image using the ''--name'' option, as with the ''[[:cmd:imgfetch]]'' command. | + | ===== Backwards compatibility ===== |
+ | |||
+ | In older versions of iPXE, you must use ''chain'' when you want to download and boot a new image from a URI, and you must use ''boot'' or ''imgexec'' when you want to boot an image that has already been downloaded. | ||
+ | |||
+ | To maintain compatibility with existing scripts, you can specify a new name for the image using the deprecated ''--name'' option. | ||