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
/bootpartition 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
/bootfile 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_mbris 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-efiloader). -
#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.
-
#update_nvram ⇒ String?
Update NVRAM with entry for the installed bootloader.
-
#vgamode ⇒ String?
vgakernel 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?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 56
|
#append ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 59
|
#boot_boot ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 62
|
#boot_custom ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 67
|
#boot_extended ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 70
|
#boot_mbr ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 73
|
#boot_root ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 77
|
#cpu_mitigations ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 93
|
#generic_mbr ⇒ Boolean?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 80
|
#gfxmode ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 84
|
#hiddenmenu ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 87
|
#os_prober ⇒ Boolean?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 90
|
#password ⇒ PasswordSection?
126 127 128 |
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 126 def password @password end |
#secure_boot ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 100
|
#serial ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 97
|
#terminal ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 104
|
#timeout ⇒ Integer?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 107
|
#update_nvram ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 110
|
#vgamode ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 114
|
#xen_append ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 117
|
#xen_kernel_append ⇒ String?
|
|
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 121
|
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 |
# 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: :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.
131 132 133 134 135 136 |
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 131 def init_from_hashes(hash) super return unless hash["password"].is_a?(Hash) @password = PasswordSection.new_from_hashes(hash["password"], self) end |