summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
Commit message (Collapse)AuthorAgeFilesLines
* drakboot: minor fixes to reading/writing rEFInd config filesMartin Whitaker2018-10-121-2/+2
| | | | | | | Fixes a couple of issues found when reading a manually generated file: - allow for extra white space between label and append options - don't simplify the label when writing - rEFInd allows any text string here
* drakboot: add support for the rEFInd boot manager (mga#15153)Martin Whitaker2018-09-231-2/+107
|
* bootloader: include the 'Mageia' entry in the grub2 Default choices (mga#23393)Martin Whitaker2018-08-111-1/+1
| | | | | A parsing bug in bootloader::read_grub2() stopped the main menuentry being added to $bootloader{entries}.
* bootloader: add cma=256M@512M for Raspberry Pi DRM/VC4topic/extlinuxOlivier Blin2018-05-161-1/+1
|
* bootloader: add specific boot options for Raspberry Pi I/O scheduler (deadline)Olivier Blin2018-05-161-1/+1
| | | | | | | | | elevator=deadline is supposed to give better performance on flash storage, and used by default on most Raspberry Pi distributions. Ideally, this should not be set here for specific boards, but automatically for all architectures depending on the storage type. Archlinux appears to use a /etc/tmpfiles.d/set_IO_scheduler.conf file for this.
* bootloader: add specific boot cmdline options for Raspberry Pi serial consoleOlivier Blin2018-05-161-0/+5
| | | | | | | | | | console=ttyS0,115200 will work on Raspberry Pi 3. Raspberry Pi 2 does not boot without console=tty1 on cmdline. To have console output on both serial port and HDMI display, 8250.nr_uarts=1 is needed. On Raspberry Pi 2, though, it is required to edit /boot/extlinux/extlinux.conf to use ttyAMA0 instead of ttyS0 in the console parameter.
* bootloader: read/write extlinux.conf in U-Boot backend for ARMOlivier Blin2018-05-161-7/+87
| | | | | | | | | | | | | Read and write an extlinux.conf file in /boot/extlinux, it will be automatically found by U-boot if located on an active partition. Keep the "uboot" backend name, since we may do some U-Boot installation steps later on. Also, the extlinux.conf code could be used to support other bootloaders from the syslinux family. fixup extlinux
* bootloader: create /usr/lib/linux symlink for devicee tree filesOlivier Blin2018-05-131-0/+19
| | | | Also save it as fdtdir
* bootloader: build initrd for ARM archOlivier Blin2018-05-131-2/+0
| | | | It is needed for root devices with LABEL or UUID.
* drakboot: detect 32-bit UEFI GRUB2 bootloader when probing.Martin Whitaker2018-03-121-1/+1
| | | | This is the only missing piece for supporting 32-bit UEFI boot.
* Fix parsing of grub2 menu entries to support 16-bit mode (mga#21247).Martin Whitaker2018-01-091-1/+1
| | | | | This enables bootloader::read_grub2 to recognise the initrd16 keyword, which is used by default on x86 machines.
* Fix drakboot video mode selection when using grub2 (mga#21246)Martin Whitaker2018-01-091-3/+12
| | | | | | | | | | | | | The video mode needs to be extracted from and written back to the GRUB_CMDLINE_LINUX_DEFAULT parameter in /etc/defaults/grub2. This fix creates a new "default_vga" key in the $bootloader hash to hold the current selection. Using the existing "vga" key would cause the default video mode to be added to any bootloader entries that don't have a specific "vga" value, e.g. the "failsafe" entry. The $bootloader "vga" value doesn't appear to be set anywhere else, so may in fact be obsolete.
* Revert "do not alter /etc/default/grub on kernel updates"Thierry Vignaud2018-01-091-4/+6
| | | | | This reverts commit 7bb01fb038e0a882e755b963110bda381336b748 and commit 4c1cb5006360ccb780926000bd57f150e0fc8fbe
* Combine bootloader perImageAppend and default_append keys.Martin Whitaker2018-01-091-3/+5
| | | | | This allows changes to the append options to propagate to the grub2 configuration file, thus fixing mga#21263 and mga#21250.
* fix doble quotes in perldocThierry Vignaud2018-01-071-6/+6
|
* (read_grub2) handle several levels of submenusThierry Vignaud2017-09-181-1/+1
| | | | needed anyway after last commit
* read_grub2: fix undefined labels (mga#19014)Thierry Vignaud2017-09-181-1/+1
| | | | | | | | | | | we were wrongly assuming we entered a new entry when reading eg: "${xen_rm_opts}" (which is why most people never see that error and why I wasn't able to reproduce it, one would need Xen or similar to be installed) Then drakboot would crash with: drakboot crashed ("undefined value for mandatory argument 'text' encountered at ugtk3.pm" Theorically, it could happen with DrakX too when updating a system with Xen.
* (read_grub2) handle both linux & linux16Thierry Vignaud2017-09-181-1/+1
| | | | thus we got more data
* Don't overwrite custom grub2 settings when updating/upgrading (mga#20596)Martin Whitaker2017-06-221-2/+2
| | | | | Fixes a corner case bug where GRUB_DEFAULT and GRUB_SAVEDEFAULT would be overwritten if previously set to a value that evaluates as false.
* drop last references to kernel-multimediaThierry Vignaud2017-05-031-3/+0
|
* do not offer lilo/grub-legacy in live installThierry Vignaud2017-01-231-1/+1
| | | | Resolves: mga#20089
* disable audit logging by default as it floods the logsThomas Backlund2016-12-241-3/+3
|
* drop support for very old kernel flavorsThierry Vignaud2016-10-161-8/+2
| | | | | those are no more generated for more than 10 years... also make kernel server default if installed
* simplifyThierry Vignaud2016-10-161-1/+1
|
* fix .old backup for grub2's grub.cfgThierry Vignaud2016-07-251-3/+2
| | | | | | | | rationale: write_*() takes (bootloader, all_hd, ext) as parameters (when called from installkernel -> bootloader-config and then only when migrating to uuids as we don't care for 2 first for grub2, just ignore the 3rd too
* grub2: fix not being able to edit default cmdlineThierry Vignaud2016-07-171-4/+3
| | | | | | | | | | | | | Keep default append value (aka /etc/default/grub's GRUB_CMDLINE_LINUX_DEFAULT into {default_append} variable) Always use the value passed as now write_grub2_sysconfig() is only called after having offered to display the default cmdline value On first run (during installer) or when migrating from grub-legacy or lilo, we get the first entry's parameters Thus resolving mga#18952
* drakboot.conf is dead since before mga5Thierry Vignaud2016-07-171-6/+2
|
* allow installing grub2 on XFS /Thierry Vignaud2016-07-041-4/+0
| | | | tested under both UEFI & legacy BIOS
* ensure we only offer lilo/grub choice on upgradesThierry Vignaud2016-07-041-1/+2
|
* explain why only grub2 is offered on UEFIThierry Vignaud2016-07-041-0/+1
|
* simplify after previous commitThierry Vignaud2016-06-241-2/+2
|
* do not alter /etc/default/grub on kernel updatesThierry Vignaud2016-06-241-3/+2
| | | | only when running drakboot (mga#18783)
* (write_grub2_default_entry) split itThierry Vignaud2016-06-241-10/+17
| | | | needed for next commit
* (write_grub2_sysconfig) split itThierry Vignaud2016-06-241-2/+8
| | | | needed for next commit
* remeber if we didn't want to overwrite ESP/MBRThierry Vignaud2016-06-241-0/+1
| | | | it wasn't done previously...
* add a "Do not touch ESP or MBR" option (mga#18770)Thierry Vignaud2016-06-241-3/+5
|
* filter GPT disks w/o a BIOS boot part (mga#18770)Thierry Vignaud2016-06-241-2/+6
| | | | | | else grub2-install failed with:r "this GPT Partition label contains no BIOS Boot Partition: embedding won't be possible."
* fix kernel names in logsThierry Vignaud2016-06-231-1/+1
|
* do not overwite ESP if not installing on itThierry Vignaud2016-06-221-0/+1
| | | | temporary hack for mga#15583
* fix setting default entry when in a submenuThierry Vignaud2016-06-221-3/+15
| | | | | | | default entry must be selected by its full path (mga#18560) eg: "submenu1>submenu2>title": See http://www.gnu.org/software/grub/manual/html_node/default.html#default
* better state machineThierry Vignaud2016-06-221-3/+5
| | | | needed for next commit
* do not crash if file does not existThierry Vignaud2016-06-221-1/+1
|
* grub2: simplify using user.cfg (mga#15930)Thierry Vignaud2016-06-211-14/+3
|
* grub2: enable to protect with a passwordThierry Vignaud2016-06-211-0/+64
| | | | thus restricting altering the config on boot (mga#15930)
* fix the grub2 post-install check (mga#18739)Thierry Vignaud2016-06-201-2/+2
|
* perl_checker: fix backup extensionThierry Vignaud2016-06-201-1/+1
|
* ensure we've the right grub2 flavor (mga#18739)Thierry Vignaud2016-06-201-2/+3
|
* simplify generic caseThierry Vignaud2016-06-201-1/+1
|
* split out grub2 case for next commitThierry Vignaud2016-06-201-2/+3
|
* refactor for next commit (& explain)Thierry Vignaud2016-06-201-3/+4
|