Commit Graph

59 Commits

Author SHA1 Message Date
Anton Midyukov
a10ff3f906 grub: fix 83rescue_fm.cfg, 85mediacheck.cfg
Add multiple kernels support and initrd.img support instead full.cz.
2021-06-03 15:58:35 +07:00
Anton Midyukov
32f1491fbd grub: Add save default item support for more items 2021-05-21 00:07:30 +07:00
Anton Midyukov
8f01688b34 grub: Fix selection of default item
1. Didn't work before because the variable was not exported.
2. Fixed the logic broken by the introduction of support for saving
the selected item on the FAT partition.
2021-05-21 00:03:59 +07:00
Dmitriy Terekhin
efec47fa42 grub: save ang read default menu item
If the ISO image has a FAT partition and the image is written
to a flash drive, then it is possible to write to this partition
of the flash drive.
This is necessary, for example, if the user
does not want to install the system, but wants to constantly work
in LiveCD mode with or without recording sessions.
In order for this code to work, you need to make changes
to the FAT partition of the image on the flash drive:
Add the 1st line to the grub.cfg file:
set pfxfat=${prefix}
Write a 1kb file grubenv.
If grub.cfg contains a line like '^default=id',
then the read value is not used.
2021-05-19 15:55:44 +04:00
Evgeny Sinelnikov
aed27a30f8 grub: look for any way to set default menu item
This prepares the ability to write and read
the default menu item from the grubenv file.
If grub.cfg contains a line like '^default=id',
then the read value is not used.
Setting the default menu item from the grubenv file
will be indented inside the 'if' optator and therefore
does not match the '^default' pattern.
2021-05-19 15:52:34 +04:00
Anton Midyukov
3e77e02956 grub, initrd-propagator, stage2, syslinux: set STAGE1_INITRD_BOOTARGS in initrd-propagator 2021-05-12 13:36:59 +07:00
Michael Shigorin
47d9b05b8c grub: fix typo in menu entry
Just a cosmetic fixup (until not paired up with translations):
"2nd" means "second", "1st" meant "first".
2021-04-28 19:34:45 +07:00
Anton Midyukov
6b073a968e grub: Markup configuration files for translation 2021-04-28 17:28:14 +07:00
Anton Midyukov
b9bbd4c38e grub: Add items boot with local drive for grub-pc (iso)
use/grub/localboot, use/grub/sdab similar to use/syslinux/localboot,
use/syslinux/sdab.
2021-04-23 23:19:37 +07:00
Anton Midyukov
2b6c37afcd grub, hdt: Add hdt support for grub-pc (memdisk + floppy image)
Note: syslinux --install needed /proc, so:
@$(call set,GLOBAL_HSH_PROC,1)

See-also: mkimage/doc/README.ru
2021-04-22 20:11:14 +07:00
Anton Midyukov
09d751fcc0 grub, syslinux, memtest: replace memtest to boot/
memtest is not part of syslinux.
Also replace tabs to spacebar.
2021-04-22 18:43:58 +07:00
Anton Midyukov
f430dda131 grub: do not generate kernel selection menu if KFLAVOURS is not defined 2021-04-22 09:56:44 +07:00
Anton Midyukov
5fd76345a8 grub, syslinux: initrd setup arguments support 2021-04-12 23:13:57 +07:00
Anton Midyukov
a61162c42b grub, initrd-propagator, syslinux: Set STAGE1_INITRD to initrd-propagator 2021-04-12 23:13:57 +07:00
Anton Midyukov
5a77a345a6 grub, syslinux: Add support initrd.img instead full.cz 2021-04-12 23:13:57 +07:00
Anton Midyukov
d9dca6cb1a doc, grub, stage1, stage2: Add support multiple kernels for grub only
At the moment, the ability to select the kernel with which to boot is
implemented only for grub (grub-pc, grub-efi, ieee1275boot).
note that renamed STAGE1_KFLAVOUR to STAGE1_KFLAVOURS, as multiple
kernels can now be added.
2021-04-12 23:13:47 +07:00
Anton Midyukov
f7043b4a3a Revert "grub: Drop multiple kernel support"
This reverts commit 5848ae70df.
2021-04-06 00:15:59 +07:00
Anton Midyukov
cdc01398f7 grub: fix memtest_efi.cfg, shell_efi.cfg 2021-04-03 22:21:38 +07:00
Anton Midyukov
9658fa449a grub: Added missing README 2021-04-03 22:10:01 +07:00
Anton Midyukov
58eea1911b boot.mk, efi, grub: Add support riscv64
For riscv64 available grub-efi.
Needed added support for mkimage (mki-copy-efiboot-chrooted).
2021-03-16 21:15:49 +07:00
Anton Midyukov
724d904cae grub: restrict graphics mode to architectures i586, x86_64, aarch64
Not needed for other architectures.
See-also: use/branding/full
2021-03-16 21:06:04 +07:00
Anton Midyukov
f40fe0ebc5 boot.mk, grub, syslinux: Add the ability to override BOOTLOADER
More than one BOOTLOADER may be available for the same architecture.
Set IMAGE_PACKTYPE in boot/iso, there is no point in duplicating
in different features.
Closes ALT bug 39786.
2021-03-16 18:12:48 +07:00
Anton Midyukov
67c14e429b grub: Add copy grub theme and locale
Thanks underwit@
See-also: ALT bug 39632
2021-02-15 19:14:22 +07:00
Anton Midyukov
6fafc883a0 grub: fix comment in 01-grub 2021-02-15 19:14:22 +07:00
Anton Midyukov
dfa67141d8 grub: Use common grub.cfg for grub-pc and grub-efi 2021-02-15 19:14:19 +07:00
Anton Midyukov
aa12c024f9 grub: Use variable $linux_suffix
Needed for use one grub.cfg config for all grub platforms.
2021-02-15 17:07:04 +07:00
Anton Midyukov
1e2a05d9bc grub, memtest: Add memtest for grub-pc 2021-02-14 23:22:56 +07:00
Anton Midyukov
7de3db560e grub: Add support grub-pc for ISO bootloading
It is required to set the BOOTLOADER and BOOT_TYPE variables in
grubpcboot.
2021-02-14 23:22:56 +07:00
Anton Midyukov
961db57535 grub: fix config for grub_platform 2021-02-14 23:22:56 +07:00
Anton Midyukov
99db7a9e8c grub: replace kernel flavour menu before memtest 2021-02-14 23:22:56 +07:00
Anton Midyukov
5c1239c97a grub: Use META_VOL_ID for @distro@ instead RELNAME if available
In menu you need the name of the distributiv.
If not set, then we will be as before.
Also corrected the selection of phrases for translation.
Suggested-by: zerg@
See-also: ALT bug 39611, 39612.
2021-01-28 17:33:43 +07:00
2a875c7064 grub: Markup configuration files for translation 2021-01-26 21:29:19 +07:00
Anton Midyukov
2088ffdae7 grub: Fix typo in generate.mk 2021-01-25 19:42:32 +07:00
Anton Midyukov
e0aa88b7b1 grub: Add EFI_BOOTARGS into BOOT/EFI/grub.cfg
Pay attention to what you are adding to the variable. No need to
add language and live_rw there! Они нужны только для refind.
2020-12-05 00:25:53 +07:00
Anton Midyukov
5848ae70df grub: Drop multiple kernel support 2020-11-12 21:41:32 +07:00
Michael Shigorin
0225b2549f grub: ignore all targets if not available
Otherwise it might e.g. add branding-*-bootloader
for no good reason, poisoning $destdir with an
existing and non-empty /etc/sysconfig/grub2
regardless of the actual grub availability
on the platform.
2020-08-31 14:24:58 +03:00
Anton Midyukov
1babd587ab grub: Added the ability to define the default menu item
Example:
@$(call set,GRUB_DEFAULT,uefi-firmware)
@$(call xport,GRUB_DEFAULT)

See features.in/grub/cfg.in/*.cfg
2020-08-27 15:05:00 +07:00
Anton Midyukov
52103e0658 grub, syslinux: Set default timeout to 60 seconds
60 seconds should be enough for any hardware.
It is important not to forget that the timeout for grub is measured
in seconds, and for syslinux in deciseconds.
2020-08-26 14:45:04 +07:00
Anton Midyukov
eed69db1ab grub: Added ability to set grub theme name
Simply Linux has a specific directory name with a theme.
2020-05-22 13:34:37 +07:00
Anton Midyukov
0950ba8012 grub: added gfxmode support 2020-05-22 13:34:35 +07:00
Anton Midyukov
3d54dc5e7c grub: added info messages for boot 2020-05-22 13:34:35 +07:00
Anton Midyukov
4945e85e1d grub: Added submenu for kernel flavour change 2020-05-22 13:34:35 +07:00
Anton Midyukov
ed62966ee0 grub: Added submenu for langs change 2020-05-22 13:34:35 +07:00
Anton Midyukov
ea262607b8 grub: sed @relname@ all 2020-05-22 13:34:35 +07:00
Anton Midyukov
26535e49b9 grub: vnc install like as syslinux 2020-05-22 13:34:35 +07:00
Anton Midyukov
6083dd9fe0 grub: fix install-vnc-{connect,listen}.cfg 2020-05-22 13:34:35 +07:00
Anton Midyukov
65a7c43a08 grub: added fwsetup_efi.cfg
Added for EFI only (see stage1/scripts.d/01-grub).
2020-04-03 22:56:58 +07:00
Anton Midyukov
5b52057937 grub: add 84rescue_remote.cfg 2020-04-03 22:56:58 +07:00
Anton Midyukov
b6010f5bd4 grub: available for i586, x86_64, aarch64, ppc64le 2020-04-03 22:56:58 +07:00
Anton Midyukov
567c374e40 grub: not show "ALT" before @relname@ in 20install2.cfg
The word "ALT" already contained in @relname@.
Added when call use/grub.
2020-04-03 22:56:58 +07:00