@@ -4,76 +4,122 @@ parent: Configuration
44
55# pxe type
66
7- Specifies the PXE-specific configuration for the generated OS artifacts.
7+ Specifies the configuration for the generated PXE artifacts when the ` --output-format `
8+ is set to ` pxe-dir ` or ` pxe-tar ` .
89
9- Added in v0.8.
10+ If the ` --output-format ` is set to ` pxe-dir ` , ` --output-path ` will point to a
11+ directory where the customized PXE artifacts will be placed.
1012
11- ## isoImageBaseUrl [ string]
13+ If the ` --output-format ` is set to ` pxe-tar ` , ` --output-path ` will point to a
14+ ` .tar.gz ` file where the customized PXE artifacts will be archived in.
1215
13- Specifies the base URL for the ISO image to download at boot time. The Azure
14- Linux Image Customizer will append the output image name to the specified base
15- URL to form the full URL for downloading the image. The output image name is
16- specified on the command-line using the ` --output-image file ` argument (see the
17- [ command-line interface] ( ../cli.md ) document for more details).
16+ Example:
1817
19- This can be useful if the ISO image name changes with each build and the
20- script deploying the artifacts to the PXE server does not update grub.cfg with
21- the ISO image name.
18+ ``` yaml
19+ pxe :
20+ additionalFiles :
21+ - source : files/a.txt
22+ destination : /a.txt
2223
23- For example,
24+ kernelCommandLine :
25+ extraCommandLine :
26+ - rd.info
27+
28+ initramfsType : bootstrap
29+
30+ bootstrapBaseUrl : http://my-pxe-server
31+ ` ` `
32+
33+ See also the [PXE Support](../../concepts/pxe.md) page.
34+
35+ ## kernelCommandLine [[kernelCommandLine](./kernelcommandline.md)]
36+
37+ Specifies extra kernel command line options.
38+
39+ Added in v0.15.
40+
41+ ## additionalFiles [[additionalFile](./additionalfile.md)[]]
42+
43+ Adds files to the PXE artifacts.
44+
45+ Added in v0.15.
46+
47+ ## initramfsType [string]
2448
25- - If the user has the following content in the configuration file:
49+ Specifies the initramfs type to generate and include in the PXE artifacts.
2650
27- ``` yaml
28- pxe :
29- isoImageBaseUrl : http://hostname-or-ip/iso-publish-path
30- ` ` `
51+ Supported options:
3152
32- - and specifies the following on the command line:
53+ - ` bootstrap`: Creates a minimal Dracut-based initramfs image that later
54+ transitions to the full OS. The full OS is packaged in a separate image
55+ and is included on in the PXE artifacts folder for the initramfs to find it.
56+ This option allows the generated PXE artifacts to boot on hardware that has
57+ memory restrictions on the initramfs image size.
58+ - `full-os` : Creates a full OS initramfs image.
3359
34- ` ` ` bash
35- sudo imagecustomizer \
36- --image-file "./input/azure-linux.vhdx" \
37- --config-file "./input/customization-config.yaml" \
38- --rpm-source "./input/rpms" \
39- --build-dir "./build" \
40- --output-image-format "iso" \
41- --output-image-file "./build/output/output.iso" \
42- --output-pxe-artifacts-dir "./build/output/pxe-artifacts"
43- ```
60+ The default value for `initramfsType` is `full-os`.
4461
45- - then, during PXE booting, the ISO image will be downloaded from:
62+ Note that SELinux cannot be enabled if `initramfsType` is set to `full-os`.
4663
47- ``` bash
48- http://hostname-or-ip/iso-publish-path/output.iso
49- ```
64+ Example :
5065
51- This field is mutually exclusive with ` isoImageFileUrl ` .
66+ ` ` ` yaml
67+ pxe:
68+ initramfsType: bootstrap
69+ ` ` `
5270
53- For an overview of Image Customizer support for PXE, see the
54- [ PXE support page ] ( ../../concepts/pxe.md ) .
71+ For an overview of the Image Customizer tool support for PXE, see the
72+ [PXE support](../../concepts/pxe.md) page .
5573
56- Added in v0.8 .
74+ Added in v0.15 .
5775
58- ## isoImageFileUrl [ string]
76+ # # bootstrapBaseUrl [string]
5977
60- Specifies the URL of the ISO image to download at boot time.
61- The ISO image must be a LiveOS ISO image generated by the Azure Linux Image
62- Customizer. The booting process will pivot to the root file system embedded
63- in the ISO image after downloading it.
78+ Specifies the base URL for the bootstrap ISO image to download at boot time.
79+ The bootstrap ISO image is generated by the Image Customizer tool along with the
80+ rest of the PXE artifacts. The Image Customizer tool will append the
81+ default image name (`image.iso`) to the specified base URL to form the full URL
82+ for downloading the image.
83+
84+ For example, if the user has the following content in the configuration file :
85+
86+ ` ` ` yaml
87+ pxe:
88+ bootstrapBaseUrl: http://hostname-or-ip/iso-publish-path
89+ ` ` `
90+
91+ Then the download URL becomes `http://hostname-or-ip/iso-publish-path/image.iso`.
92+
93+ This field is mutually exclusive with `bootstrapFileUrl`.
94+
95+ For an overview of the Image Customizer tool support for PXE, see the
96+ [PXE support](../../concepts/pxe.md) page.
97+
98+ Added in v0.15.
99+
100+ # # bootstrapFileUrl [string]
101+
102+ Specifies the URL of the bootstrap ISO image to download at boot time.
103+ The bootstrap ISO image is generated by the Image Customizer tool along with the
104+ rest of the PXE artifacts. The generated ISO will always be placed at the root
105+ of the PXE artifacts folder (archive) and will be have the same name as the file
106+ name specified by `bootstrapFileUrl`.
107+
108+ For example,
64109
65- PXE Configuration Example:
110+ ` ` ` yaml
111+ pxe:
112+ bootstrapFileUrl: http://hostname-or-ip/iso-publish-path/my-bootstrap.iso
113+ ` ` `
66114
67- - ``` yaml
68- pxe :
69- isoImageFileUrl : http://hostname-or-ip/iso-publish-path/my-liveos.iso
70- ` ` `
115+ A file named `my-bootstrap.iso` will be placed at the root of the PXE artifacts
116+ folder.
71117
72118The supported download protocols are : nfs, http, https, ftp, torent, tftp.
73119
74- This field is mutually exclusive with ` isoImageBaseUrl `.
120+ This field is mutually exclusive with `bootstrapBaseUrl `.
75121
76- For an overview of Image Customizer support for PXE, see the
77- [PXE support page ](../../concepts/pxe.md).
122+ For an overview of the Image Customizer tool support for PXE, see the
123+ [PXE support](../../concepts/pxe.md) page .
78124
79- Added in v0.8 .
125+ Added in v0.15 .
0 commit comments