Class: Bootloader::AutoinstProfile::GlobalSection
- Inherits:
-
Installation::AutoinstProfile::SectionWithAttributes
- Object
- Installation::AutoinstProfile::SectionWithAttributes
- Bootloader::AutoinstProfile::GlobalSection
- Defined in:
- src/lib/bootloader/autoinst_profile/global_section.rb
Overview
This class represents an AutoYaST
Instance Attribute Summary collapse
-
#activate ⇒ Boolean?
Whether to set the boot flag on the boot partition.
-
#append ⇒ String?
Kernel parameters to add at the end of the boot entries.
-
#boot_boot ⇒ String?
Write GRUB 2 to a separate
/boot
partition if it exists. -
#boot_custom ⇒ String?
Name of device to write GRUB 2 to (e.g., "/dev/sda3").
-
#boot_extended ⇒ String?
Write GRUB 2 to the extended partition ("true" or "false").
-
#boot_mbr ⇒ String?
Write GRUB 2 to the MBR of the disk which contains the
/boot
file system. -
#boot_root ⇒ String?
Write GRUB 2 to root (
/
) partition ("true" or "false"). -
#cpu_mitigations ⇒ String?
Set of kernel boot command lines parameters for CPU mitigations ("auto", "nosmt", "off" and "manual").
-
#generic_mbr ⇒ Boolean?
Write generic boot code to the MBR (ignored is
boot_mbr
is set to "true"). -
#gfxmode ⇒ String?
Graphical resolution of the GRUB 2 screen.
-
#hiddenmenu ⇒ String?
Whether to hide the bootloder menu.
-
#os_prober ⇒ Boolean?
Whether to search for already installed operating systems.
-
#password ⇒ PasswordSection?
Password section or nil if not set.
-
#secure_boot ⇒ String?
Whether to enable/disable UEFI secure boot (only for
grub2-efi
loader). -
#serial ⇒ String?
Command to execute if the GRUB 2 terminal mode is set to "serial".
-
#terminal ⇒ String?
GRUB 2 terminal mode to use ("console", "gfxterm" and "serial").
-
#timeout ⇒ Integer?
Timeout in seconds until automatic boot.
-
#trusted_boot ⇒ String?
Use Trusted GRUB (only for
grub2
loader type). -
#update_nvram ⇒ String?
Update NVRAM with entry for the installed bootloader.
-
#vgamode ⇒ String?
vga
kernel parameter (e.g., "0x317"). -
#xen_append ⇒ String?
Kernel parameters to add at the end of boot entries for Xen guests (e.g., "nomodeset vga=0317").
-
#xen_kernel_append ⇒ String?
Kernel parameters to add at the end of boot entries for Xen kernels on the VM host server (e.g., "dom0_mem=768").
Class Method Summary collapse
Instance Method Summary collapse
-
#init_from_hashes(hash) ⇒ Object
Method used by new_from_hashes to populate the attributes.
Instance Attribute Details
#activate ⇒ Boolean?
Returns whether to set the boot flag on the boot partition.
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 58
|
#append ⇒ String?
Returns kernel parameters to add at the end of the boot entries.
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 61
|
#boot_boot ⇒ String?
Returns write GRUB 2 to a separate /boot
partition if it exists.
If it is not given, the bootloader is written to /
. Valid values are
"true" and "false".
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 64
|
#boot_custom ⇒ String?
Returns name of device to write GRUB 2 to (e.g., "/dev/sda3").
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 69
|
#boot_extended ⇒ String?
Returns write GRUB 2 to the extended partition ("true" or "false").
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 72
|
#boot_mbr ⇒ String?
Returns write GRUB 2 to the MBR of the disk which contains
the /boot
file system. Valid values are "true" and "false".
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 75
|
#boot_root ⇒ String?
Returns write GRUB 2 to root (/
) partition ("true" or "false").
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 79
|
#cpu_mitigations ⇒ String?
Returns set of kernel boot command lines parameters for CPU mitigations ("auto", "nosmt", "off" and "manual").
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 95
|
#generic_mbr ⇒ Boolean?
Returns write generic boot code to the MBR (ignored is boot_mbr
is
set to "true").
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 82
|
#gfxmode ⇒ String?
Returns graphical resolution of the GRUB 2 screen.
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 86
|
#hiddenmenu ⇒ String?
Returns whether to hide the bootloder menu.
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 89
|
#os_prober ⇒ Boolean?
Returns whether to search for already installed operating systems.
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 92
|
#password ⇒ PasswordSection?
Returns password section or nil if not set.
132 133 134 |
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 132 def password @password end |
#secure_boot ⇒ String?
Returns whether to enable/disable UEFI secure boot (only for grub2-efi
loader). It is set to "false", it disables the secure boot ("true" or "false").
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 102
|
#serial ⇒ String?
Returns command to execute if the GRUB 2 terminal mode is set to "serial".
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 99
|
#terminal ⇒ String?
Returns GRUB 2 terminal mode to use ("console", "gfxterm" and "serial").
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 106
|
#timeout ⇒ Integer?
Returns timeout in seconds until automatic boot.
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 109
|
#trusted_boot ⇒ String?
Returns use Trusted GRUB (only for grub2
loader type). Valid values
are "true" and "false".
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 112
|
#update_nvram ⇒ String?
Returns Update NVRAM with entry for the installed bootloader. Valid values are "true" and "false".
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 116
|
#vgamode ⇒ String?
Returns vga
kernel parameter (e.g., "0x317").
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 120
|
#xen_append ⇒ String?
Returns kernel parameters to add at the end of boot entries for Xen guests (e.g., "nomodeset vga=0317").
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 123
|
#xen_kernel_append ⇒ String?
Returns kernel parameters to add at the end of boot entries for Xen kernels on the VM host server (e.g., "dom0_mem=768").
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 127
|
Class Method Details
.attributes ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 29 def self.attributes [ { name: :activate }, { name: :append }, { name: :boot_boot }, { name: :boot_custom }, { name: :boot_extended }, { name: :boot_mbr }, { name: :boot_root }, { name: :cpu_mitigations }, { name: :generic_mbr }, { name: :gfxmode }, { name: :hiddenmenu }, { name: :os_prober }, { name: :secure_boot }, { name: :serial }, { name: :terminal }, { name: :timeout }, { name: :trusted_boot }, { name: :trusted_grub }, { name: :update_nvram }, { name: :vgamode }, { name: :xen_append }, { name: :xen_kernel_append } ] end |
Instance Method Details
#init_from_hashes(hash) ⇒ Object
Method used by new_from_hashes to populate the attributes.
137 138 139 140 141 142 |
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 137 def init_from_hashes(hash) super return unless hash["password"].is_a?(Hash) @password = PasswordSection.new_from_hashes(hash["password"], self) end |