NCM::Component::grub - schema¶
Types¶
- /software/components/grub/grub_argument
Description: the crypted password can be supplied either in the password field OR, alternatively, within a file. this could be useful if putting the crypted password in the profile is undesirable. for this the file will be scanned and the password will be taken from the second field in a colon delimited line, where the first field matches the file_user parameter.
- /software/components/grub/grub_argument/value
Description: a value for the argument (creates key=value when present; only key is generated when missing (a list is converted in comma-separated list of strings).
Optional
Type: element
- /software/components/grub/grub_argument/enable
Description: if false, do not add/update this argument and remove this option from the current list
Required
Type: boolean
Default value: true
- /software/components/grub/type_grub_password
- /software/components/grub/type_grub_password/enabled
Description: Sets if a password should be enabled in grub.conf. If this is false, any existing password will be removed. If this is not defined, the component will not add or remove a password, leaving any existing one untouched.
Optional
Type: boolean
- /software/components/grub/type_grub_password/option
Description: An –option used with the password line in grub.conf. This is typically used to set the hashing algorithm for the password. “encrypted” means the password can be hashed with (more secure than MD5) SHA-256 or SHA-512. “md5” for an MD5 hashed password. Plaintext is not supported.
Required
Type: string
- /software/components/grub/type_grub_password/password
Description: Mutually exclusive with the file option. A crypted password for grub.conf.
Optional
Type: string
- /software/components/grub/type_grub_password/file
Description: Mutually exclusive with the password option. The path to a file on the host where the password can be read from. May be useful if it is undesirable to put (even crypted) profiles into the profile. The file will be scanned for a line where the first field (colon seperated) matches the file_user option, and the second field will be used as the parameter.
Optional
Type: string
- /software/components/grub/type_grub_password/file_user
Description: See description of the file option. The user (first field) to be picked from a password field.
Required
Type: string
Default value: root
- /software/components/grub/type_kernel
- /software/components/grub/type_kernel/kernelpath
Description: Path to the kernel (relative to “prefix” described above).
Required
Type: string
- /software/components/grub/type_kernel/kernelargs
Description: Sets the arguments for this kernel at boot time. Behaviour is same as ‘args’ with fullcontrol false.
Optional
Type: string
- /software/components/grub/type_kernel/multiboot
Description: Allows for setting a multiboot loader which is a generic interface for boot loaders and operating systems. The Xen hypervisor uses a multiboot loader to load guest kernels as modules.
Optional
Type: string
- /software/components/grub/type_kernel/mbargs
Description: Sets the arguments that are to be passed to a multiboot loader. For example, the Xen hypervisor accepts arguments for setting the amount of memory allocated to the Domain 0 kernel.
Optional
Type: string
- /software/components/grub/type_kernel/initrd
Description: Optionally set an initial ramdisk image to be loaded when booting.
Optional
Type: string
- /software/components/grub/type_kernel/title
Description: The title string that will be used to describe this entry.
Optional
Type: string
- /software/components/grub/grub_component
- /software/components/grub/grub_component/prefix
Description: Prefix where kernels are found. Component defaults to /boot.
Optional
Type: string
- /software/components/grub/grub_component/args
Description: Sets the arguments for the default kernel at boot time. The removal of a current argument is done by preceding the argument with a “-”. If ‘fullcontrol’ is false then an empty or undefined value leaves the current arguments untouched. If ‘fullcontrol’ is true then the current arguments passed to the kernel are substituted by the ones given in this entry.
Optional
Type: string
- /software/components/grub/grub_component/arguments
Description: Same as args, but removal is flagged by setting enable=false
Optional
Type: grub_argument
- /software/components/grub/grub_component/fullcontrol
Description: Sets if we want a full control of the kernel arguments. The component default is ‘false’.
Optional
Type: boolean
- /software/components/grub/grub_component/sanitize
Description: Sets if we want to sanitize final state of default kernel arguments. The component default is ‘false’.
Optional
Type: boolean
- /software/components/grub/grub_component/kernels
Description: This is a list of kernels that should have entries in the grub configuration file. Each kernel is described by the following entries.
Optional
Type: type_kernel
- /software/components/grub/grub_component/password
Optional
Type: type_grub_password
- /software/components/grub/grub_component/pxeboot
Description: pxeboot first: set the PXE boot device as first device. Only for supported platforms (e.g. UEFI)
Optional
Type: boolean