Re: GRUB2 PXE chainloading and EFI handles

2024-04-14 Thread Andrei Borzenkov
On 14.04.2024 14:24, kitzman wrote: Dear all, I'm here to ask for some help - I'm not an EFI expert so brace yourselves. I have the following situation: I PXE boot EFI GRUB2, which has menu entries for some operating systems. One of the operating systems requires chainloading its bootloader.

Re: Question about decryption prompts

2024-04-02 Thread Andrei Borzenkov
On 02.04.2024 16:54, Sotir Danailov wrote: My grub.cfg: https://privatebin.net/?fa99fa6e4e327c83#BBSgN7uToXF7KsmxNcCCDwE9u1e9aSe9q74S1NfdpLQq cryptomount -u 62bbeda8-8b36-4bd0-a789-4bfb3d0c3d99 set root='cryptouuid/62bbeda88b364bd0a7894bfb3d0c3d99' if [ x$feature_platform_search_hint = xy ];

Re: Question about decryption prompts

2024-04-02 Thread Andrei Borzenkov
On Tue, Apr 2, 2024 at 4:34 PM Sotir Danailov wrote: > > > So what is your question then? Your grub.cfg tries to unlock /. > > My question is, when it tries to unlock /, why does it accept an > invalid password and just continue to the menu? > How should I know? Show your grub.cfg.

Re: Question about decryption prompts

2024-04-01 Thread Andrei Borzenkov
On 01.04.2024 23:48, Sotir Danailov wrote: missing file is simply ignored What do you mean by "missing file"? grub cannot ignore missing /boot /boot is fine and I don't need it to be ignored of course. I just wanted to know, why would it prompt for a second password, if the input doesn't

Re: Question about decryption prompts

2024-04-01 Thread Andrei Borzenkov
On 01.04.2024 18:32, Sotir Danailov wrote: Hello, I have a question about how GRUB handles prompting for a password for encrypted disks using LVM. I am using Debian Testing and I have GRUB 2.12 installed, but this was present on GRUB 2.06 as well. So I have 2 encrypted logical volumes. One is

Re: lmvid not found

2024-03-27 Thread Andrei Borzenkov
On Wed, Mar 27, 2024 at 3:28 PM Eduardo Suarez wrote: > > On Wed, Mar 27, 2024 at 02:00:11PM +0300, Andrei Borzenkov wrote: > > On Wed, Mar 27, 2024 at 1:26 PM Eduardo Suarez > > wrote: > > > > > > On Tue, Mar 26, 2024 at 08:45:33PM +0300, Andrei Borz

Re: lmvid not found

2024-03-27 Thread Andrei Borzenkov
On Wed, Mar 27, 2024 at 1:26 PM Eduardo Suarez wrote: > > On Tue, Mar 26, 2024 at 08:45:33PM +0300, Andrei Borzenkov wrote: > > You do not show the error in this case so it is entirely unclear and > > useless. But to search for UUID grub image must include the correct > >

Re: lmvid not found

2024-03-26 Thread Andrei Borzenkov
On 26.03.2024 19:05, Eduardo Suarez wrote: Hi, I recently moved my disks to a new computer and I'd like to avoid legacy CSM and boot from UEFI. So far I can boot fine with CSM enabled. My setup is: sda -> GPT ├─sda1 95,4M part /boot/efi ├─sda2 4M part BIOS boot

Re: grub-mkrescue with pgp --pubkey might be broken in grub 2.12 on EFI

2024-03-20 Thread Andrei Borzenkov
On 20.03.2024 12:16, Reto Buerki wrote: Thanks for the confirmation. I already forwarded my mail to bug-grub, but I'm not sure it worked correctly (no bug # assigned yet). bug-grub does not work this way. It receives notifications from bug tracker and in earlier experience it is not

Re: grub-mkrescue with pgp --pubkey might be broken in grub 2.12 on EFI

2024-03-19 Thread Andrei Borzenkov
On 07.03.2024 22:40, Reto Buerki wrote: Hi, I'm using grub-mkrescue in combination with the pgp --pubkey feature to put grub into check_signatures=enforce mode, and to only have signed data loaded and processed. Something like: grub-mkrescue --modules='normal pgp' -o test.iso

Re: GRUB install issue

2024-03-19 Thread Andrei Borzenkov
On 19.03.2024 21:04, Guillaume Tétart wrote: Hi sir, I've been trying to install Ubuntu 22.04, or Mint 21.3, on an HP xw4400 computer for some time now. This PC is note designed for UEFI technology, so no EFI partition … The configuration is as follows: • two 500GB hard drives ; • 8MB of RAM ;

Re: Is booting from iSCSI supported in grub.

2024-03-05 Thread Andrei Borzenkov
On Tue, Mar 5, 2024 at 4:50 PM Mukesh Kumar Chaurasiya wrote: > > Hello, > > I am wondering if booting from iSCSI is supported in GRUB. > GRUB itself does not implement iSCSI initiator. Your BIOS or HBA may support booting over iSCSI, but in this case GRUB will likely see the iSCSI LUNs as local

Re: how to build grub on powerpc64le ?

2024-02-27 Thread Andrei Borzenkov
On Tue, Feb 27, 2024 at 4:15 PM yuucyf wrote: > > hi, all: > > > Does GRUB support powerpc64le, and has the community successfully built it on > powerpc64le systems? > I am facing issues building on powerpc64le, mainly encountering two problems: > > > 1. It shows an error 'cc1: error: ‘-m32’ not

Re: Booting an ISO file from GRUB

2024-02-14 Thread Andrei Borzenkov
On 14.02.2024 11:26, Marko Toivanen wrote: I have been trying to find information related to the following problem: I'm trying to start a Lubuntu 22.04 installation from an older Lubuntu 14.04 installation by booting the ISO file from grub menu. Booting the ISO file works by adding the

Re: Handle errors when booting

2024-01-29 Thread Andrei Borzenkov
On Mon, Jan 29, 2024 at 2:57 PM Mathias Radtke wrote: > > Hi > > > > > > Is there any way to kind of work around that error and run an "exit" > > command if an error occours? > > > > What is the exit code of chainloader command? If it is non-zero, you > can check for it and do something else

Re: Handle errors when booting

2024-01-29 Thread Andrei Borzenkov
On Mon, Jan 29, 2024 at 2:15 PM Mathias Radtke wrote: > > Hi, > > I currently have a little headache with an issue. > I have a device that gets the following part of grub.cfg > > > search --no-floppy --file --set=bootable_efi > /EFI/MICROSOFT/BOOT/BOOTMGFW.EFI > > if [ -n

Re: Loading multiboot failed

2024-01-25 Thread Andrei Borzenkov
On 25.01.2024 18:57, Markbiophysicist wrote: Hello, Already from the Kali installer itself I have had problems with dual boot. The problem is that the other previously installed operating system does not recognize me. (Windows 10). Do you mean that Windows is not offered in GRUB menu?

Re: Cant chainload UKI Image with Secureboot on

2024-01-19 Thread Andrei Borzenkov
On Fri, Jan 19, 2024 at 3:45 AM wrote: > > I can boot the UKI EFI File without Secureboot directly from USB Drive or the > ESP, so the UKI is fine. > With Secureboot enabled i can Boot the UKI from USB or ESP and no Problem > arises. > > UKI is also totally fine, this is a GRUB Bug. The

Re: Cant chainload UKI Image with Secureboot on

2024-01-18 Thread Andrei Borzenkov
On 18.01.2024 07:18, rodolfosilva2--- via Support requests for the GRand Unified Bootloader wrote: Hello, my setup is as follows: Thinkpad T540 machine with no TPM. ESP as FAT32 /efi LUKS2 encrypted bootpartition  /boot LUKS2 encrypted root / Unified Kernel Images generated and located in

Re: Uniquely Identifying USB filesystem possible?

2024-01-16 Thread Andrei Borzenkov
On 16.01.2024 19:39, Harry Hirte wrote: On Tuesday, January 16, 2024 at 03:28:43 PM GMT+1, Andrei Borzenkov wrote: You specify it as (hd0) *where*? instead of the ($keyfile)0+ I use (hd0) - then it does work cryptomount -k ($keyfile)0+ -O xxx -S yyy -u $crypto_uuid Do you

Re: Uniquely Identifying USB filesystem possible?

2024-01-16 Thread Andrei Borzenkov
On Tue, Jan 16, 2024 at 5:13 PM Harry Hirte wrote: > > Hello, > > I am trying to read data from a USB-Stick when booting from grubx64.efi > This basically only works if I specify the device as (hd0). You specify it as (hd0) *where*? > I am looking for a possibility to uniquely identify the

Re: How to cross-compile grub for windows?

2023-12-31 Thread Andrei Borzenkov
On 31.12.2023 19:20, Randy Goldenberg wrote: GRUB is a boot loader. It runs before the operating system is present. Have you ever heard about grub-install? What is your goal? I. e., what problem is "cross-compiling GRUB for Windows" intended to solve? On Sun, Dec 31, 2023 at 6:45 AM D h

Re: How to cross-compile grub for windows?

2023-12-31 Thread Andrei Borzenkov
On 31.12.2023 19:20, Randy Goldenberg wrote: GRUB is a boot loader. It runs before the operating system is present. What is your goal? I. e., what problem is "cross-compiling GRUB for Windows" intended to solve? On Sun, Dec 31, 2023 at 6:45 AM D h wrote: I believe this question has been

Re: GRUB_CMDLINE_LINUX="... memmap=8G$8G"

2023-12-22 Thread Andrei Borzenkov
On 22.12.2023 07:23, John Groves wrote: Thanks for the reply Randy! No luck so far, but here is what I tried: I cannot reproduce it on the openSUSE Leap 15.5. COMMON="BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.5.12+ root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root" Test 1:

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-18 Thread Andrei Borzenkov
On Mon, Dec 18, 2023 at 12:22 PM Narcis Garcia wrote: > > El 17/12/23 a les 16:56, Andrei Borzenkov ha escrit: > > On 17.12.2023 18:00, Narcis Garcia wrote: > >> > >> What about selecting between vmlinuz-...-amd64 and vmlinuz-...-i386 on > >> non EFI firm

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Andrei Borzenkov
On Mon, Dec 18, 2023 at 9:51 AM Pascal Hambourg wrote: > > On 18/12/2023 at 04:26, Andrei Borzenkov wrote: > > On 17.12.2023 23:50, Pascal Hambourg wrote: > > ... > >> > >> Note 2: there have been a few lightweight PC with 32-bit UEFI firmware > >> an

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Andrei Borzenkov
On 17.12.2023 23:50, Pascal Hambourg wrote: ... Note 2: there have been a few lightweight PC with 32-bit UEFI firmware and 64-bit x86 CPU around. To boot on these you need to install an x86 32-bit EFI image as bootia32.efi. It can boot i386 and amd64 kernels. ... if [ $grub_cpu = x86_64 ];

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Andrei Borzenkov
On 17.12.2023 19:24, Albretch Mueller wrote: On 12/17/23, Andrei Borzenkov wrote: Now explain, how grub compiled for rsic-v is going to run on amd64 to decide anything. This is not what I have in mind. What I mean is that as part of the sequence the boot process goes through, GRUB2 should

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Andrei Borzenkov
On 17.12.2023 18:00, Narcis Garcia wrote: What about selecting between vmlinuz-...-amd64 and vmlinuz-...-i386 on non EFI firmware? If you describe what condition you are going to use to decide which kernel to load someone may have an idea how to implement it in grub. grub itself just

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Andrei Borzenkov
On 17.12.2023 14:08, Albretch Mueller wrote: On 12/17/23, Pascal Hambourg wrote: On 17/12/2023 à 10:21, Albretch Mueller wrote: Imagine a multiboot environment started by a LIVE DVD which contains the iso for various architectures if GRUB2 had a way to discern the architecture, it would

Re: C code you would compile to run within GRUB2 (is that possible?) ...

2023-12-11 Thread Andrei Borzenkov
On Tue, Dec 12, 2023 at 7:57 AM Albretch Mueller wrote: > The way I am thinking about it is, if you were to sha*sum the file > and this value would be the same as a previous run, you would know > with almost total certainty that: > a) you are booting the same machine(s you had selected, know

Re: Unexpected prefix value

2023-11-27 Thread Andrei Borzenkov
On Tue, Nov 28, 2023 at 9:45 AM Pascal Hambourg wrote: > > On 28/11/2023 at 04:44, Andrei Borzenkov wrote: > > On 27.11.2023 23:06, Pascal Hambourg wrote: > >> > >> But if I build an EFI GRUB core image with > >> > >>grub-mkimage --prefix='(hd

Re: Unexpected prefix value

2023-11-27 Thread Andrei Borzenkov
On 27.11.2023 23:06, Pascal Hambourg wrote: Hello, Distribution: Debian 12 (bookworm) GRUB version: 2.06 If I build an EFI GRUB core image with grub-mkimage --prefix='(hd0,gpt4)/' --format=x86_64-efi \ --output=/boot/efi/EFI/azerty/core.efi part_gpt ext2 when booting it, $prefix has

Re: Verify the signature of OSes (for SB)

2023-11-22 Thread Andrei Borzenkov
On Wed, Nov 22, 2023 at 3:47 PM Federico Angelilli wrote: > > By bootable disk I ment something you can boot from grub (a kernel or > initramfs or windows). > > The "shim" doesn't seem like a grub module, rather it seems like another > bootloader that immediately runs grub and is mostly useful

Re: Verify the signature of OSes (for SB)

2023-11-22 Thread Andrei Borzenkov
On Wed, Nov 22, 2023 at 1:26 PM Federico Angelilli via Support requests for the GRand Unified Bootloader wrote: > > Thank you, I totally missed that since I used Sasaki's guide. > > Could you please confirm if this is the behavior of shim or I have > misunderstood something? > 1) boot to the

Re: Verify the signature of OSes (for SB)

2023-11-22 Thread Andrei Borzenkov
On Wed, Nov 22, 2023 at 10:37 AM Federico Angelilli wrote: > > Hello, > I already imported the sb keys from the uefi and signed my grub image. > However the problem is that apart from the uefi verification of the grub > image itself, no other verification is done by grub. grub is using shim

Re: Chainloading an MS Windows installer DVD

2023-10-23 Thread Andrei Borzenkov
ram image which then loads the iso file as a virtual dvd so that setup will see the install.wim file on a mounted volume. On Mon, 23 Oct 2023, 20:23 Andrei Borzenkov, wrote: On 23.10.2023 11:58, Philip Couling wrote: Really I've been as precise as I can and given everything I've seen

Re: Chainloading an MS Windows installer DVD

2023-10-23 Thread Andrei Borzenkov
ke it work. grub2 simply does not expose media CD path (which points to the underlying EFI "system partition" boot image on CD). On Mon, 23 Oct 2023 at 08:25, Andrei Borzenkov wrote: On Thu, Oct 19, 2023 at 12:36 PM Philip Couling wrote: Hi Is there any reason why I can't c

Re: Chainloading an MS Windows installer DVD

2023-10-23 Thread Andrei Borzenkov
On Thu, Oct 19, 2023 at 12:36 PM Philip Couling wrote: > > Hi > > Is there any reason why I can't chainload an MS Windows Installer (on > USB)? Currently when I try this I get "UnknownError" when I type "boot" at > the grub command line. > > The MS Windows ISOs are a bit weird: found here: >

Re: grub-mkstandalone not adding public key

2023-09-28 Thread Andrei Borzenkov
On 28.09.2023 17:58, Philip Couling wrote: I'm having trouble getting grub-mkstandalone to recognise the public key passed in via --pubkey According to the documentation, adding --pubkey to grub-mkimage should imply check_signatures=enforce but this doesn't seem to happen for grub-mkstandalone.

Re: BIOS_grub GUID signature within an EFI partition?

2023-09-13 Thread Andrei Borzenkov
On Wed, Sep 13, 2023 at 12:48 PM Goh Lip wrote: > > > > On 9/13/23 15:15, Andrei Borzenkov wrote: > > On Wed, Sep 13, 2023 at 9:53 AM Goh Lip wrote: > >> You cannot > >> mix efi and legacy install in the same disk > > > > You most certainly can

Re: BIOS_grub GUID signature within an EFI partition?

2023-09-13 Thread Andrei Borzenkov
On Wed, Sep 13, 2023 at 9:53 AM Goh Lip wrote: > You cannot > mix efi and legacy install in the same disk You most certainly can as long as you have some way to select the boot method. You cannot use the same partition both as ESP and BIOS_grub, that's true.

Re: BIOS_grub GUID signature within an EFI partition?

2023-09-11 Thread Andrei Borzenkov
On 12.09.2023 01:51, Moses Gold wrote: The BIOS_grub GUID signature: "48 61 68 21 49 64 6F 6E 74 4E 65 65 64 45 46 49 -- Hah!IdontNeedEFI" is contained within my EFI partition after a recent grub install (grub and EFI added during same Linux installation). Specifically, the EFI partition begins

Re: How to configure grubs to boot one of a closed set of setups

2023-09-09 Thread Andrei Borzenkov
On 08.09.2023 19:59, Philip Couling wrote: I'm in the process of hardening a system to prevent tampering. What I'd like to do is to have a partially configured grub standalone (grub-mkstandalone) that will only boot menu entries from a PGP signed config file. The part of this I'm having

Re: Grub listing labels

2023-08-27 Thread Andrei Borzenkov
On 27.08.2023 19:30, Grizzly wrote: Hi Duel boot with Bodhi & BionicPup, grub shows Ubuntu 18.04 & BionicPup would like to have Bodhi show as Bodhi (not ubuntu 18.04) is there a persistant way to achive this? Edit /etc/default/grub, set GRUB_DISTRIBUTOR to whatever you want.

Re: x86_64: grub-install for secure boot

2023-07-29 Thread Andrei Borzenkov
On 28.07.2023 22:04, Pascal Hambourg wrote: On 28/07/2023 at 20:13, Zvi Vered wrote: You wrote: "Most likely the system was booted in legacy BIOS mode" I don't think so. grub-install would have selected the i386-pc target instead of x86_64-efi. --uefi-secure-boot option may implicitly set

Re: x86_64: grub-install for secure boot

2023-07-28 Thread Andrei Borzenkov
On 28.07.2023 20:26, Pascal Hambourg wrote: On 28/07/2023 at 17:58, Andrei Borzenkov wrote: On 28.07.2023 18:52, Zvi Vered wrote: In the PC boot menu, it's marked "debian". What makes you think "debian" refers to whatever you installed? Due to the failure of grub-i

Re: x86_64: grub-install for secure boot

2023-07-28 Thread Andrei Borzenkov
d? Show full output of efibootmgr -v I selected this entry in the boot menu but managed to boot only when secure boot was disabled. Thank you, Zvika On Fri, Jul 28, 2023 at 6:29 PM Andrei Borzenkov wrote: On 28.07.2023 16:14, Zvi Vered wrote: Hi Pascal, As you suggested I changed the shi

Re: x86_64: grub-install for secure boot

2023-07-28 Thread Andrei Borzenkov
On 28.07.2023 16:14, Zvi Vered wrote: Hi Pascal, As you suggested I changed the shim to x64. The output of: apt list --installed | grep shim is now:

Re: x86_64: grub-install for secure boot

2023-07-27 Thread Andrei Borzenkov
On 27.07.2023 21:44, Zvi Vered wrote: Hello, I'm trying to install grub 2.x for secure boot . I did the following steps under knoppix 9.1 : mkfs.fat -F32 /dev/sdb1 mount -t vfat /dev/sdb1 /media/sdb1 apt-get install grub-efi-amd64-signed grub-install --boot-directory=/media/sdb1/boot

Re: Debug grub scripts without rebooting into grub shell.

2023-07-09 Thread Andrei Borzenkov
On 09.07.2023 09:37, Hongyi Zhao wrote: Another question: How to enable tab completion in grub-emu for variables/functions etc.? It sounds like this completion works in "normal" grub. I am not aware of it. grub can complete commands, devices and files. Theoretically it can also complete

Re: Debug grub scripts without rebooting into grub shell.

2023-07-09 Thread Andrei Borzenkov
On 09.07.2023 12:26, Hongyi Zhao wrote: ... You create device.map and give names hd0, hd1, ... to your devices. See below: werner@X10DAi:~$ sudo grub-mkdevicemap -n werner@X10DAi:~$ cat /boot/grub/device.map (hd0)/dev/disk/by-id/nvme-SAMSUNG_MZVL22T0HBLB-00B00_S677NF0R503706 (hd1)

Re: Debug grub scripts without rebooting into grub shell.

2023-07-09 Thread Andrei Borzenkov
On 09.07.2023 10:00, Hongyi Zhao wrote: On Sun, Jul 9, 2023 at 2:49 PM Andrei Borzenkov wrote: On 09.07.2023 09:33, Hongyi Zhao wrote: On Sun, Jul 9, 2023 at 1:13 PM Andrei Borzenkov wrote: On 09.07.2023 03:21, Hongyi Zhao wrote: On Sat, Jul 8, 2023 at 9:53 PM Andrei Borzenkov wrote

Re: Debug grub scripts without rebooting into grub shell.

2023-07-09 Thread Andrei Borzenkov
On 09.07.2023 09:33, Hongyi Zhao wrote: On Sun, Jul 9, 2023 at 1:13 PM Andrei Borzenkov wrote: On 09.07.2023 03:21, Hongyi Zhao wrote: On Sat, Jul 8, 2023 at 9:53 PM Andrei Borzenkov wrote: On 08.07.2023 14:58, Hongyi Zhao wrote: Hi here, Are there some convenient methods to debug grub

Re: Debug grub scripts without rebooting into grub shell.

2023-07-08 Thread Andrei Borzenkov
On 09.07.2023 03:21, Hongyi Zhao wrote: On Sat, Jul 8, 2023 at 9:53 PM Andrei Borzenkov wrote: On 08.07.2023 14:58, Hongyi Zhao wrote: Hi here, Are there some convenient methods to debug grub scripts without rebooting into grub shell? You may try grub-emu which emulates grub. I tried

Re: Debug grub scripts without rebooting into grub shell.

2023-07-08 Thread Andrei Borzenkov
On 08.07.2023 14:58, Hongyi Zhao wrote: Hi here, Are there some convenient methods to debug grub scripts without rebooting into grub shell? You may try grub-emu which emulates grub.

Re: Use the efi file created by grub-mkstandalone to boot isos from harddisk.

2023-07-07 Thread Andrei Borzenkov
On 08.07.2023 04:34, Hongyi Zhao wrote: Hi here, I want to boot isos from harddisk via the efi file created by grub-mkstandalone. The efi file is generated as follows: $ grub-mkstandalone -O x86_64-efi -o grubx64.efi --modules='lvm fat ntfs part_msdos part_gpt ext2 btrfs probe regexp search

Re: grub-mkrescue vs grub-mkstandalone.

2023-07-07 Thread Andrei Borzenkov
On 08.07.2023 02:04, Hongyi Zhao wrote: Hi here, I have some puzzles on the difference between grub-mkrescue and grub-mkstandalone, more specifically, I would like to know the following things: 1. Currently, I'm using the following command to make a standalone EFI bootloader: $

Re: Valid grub.conf locations

2023-06-21 Thread Andrei Borzenkov
On 21.06.2023 12:08, Ulrich Sibiller wrote: On Tue, Jun 20, 2023 at 2:18 PM Andrei Borzenkov wrote: RH grub unconditionally loads grub.cfg from $cmdpath (which they renamed to fw_path) without any way to override this behavior. I hesitate to call this improvement. Well, I cannot judge here

Re: Valid grub.conf locations

2023-06-20 Thread Andrei Borzenkov
On 20.06.2023 12:39, Ulrich Sibiller wrote: On Tue, Jun 20, 2023 at 8:19 AM Andrei Borzenkov wrote: Well, first let me say that the CentOS version has it also hardcoded and loads the grub.conf anyway (from fw_path, I suppose). You are posting to upstream list, not to CentOS list. Of course

Re: Valid grub.conf locations

2023-06-20 Thread Andrei Borzenkov
where it is 'hardcoded'. You cannot run it without specifying -p. So how can I _not_ set it? grub-mkimage -p "" Uli Andrei Borzenkov schrieb am Mo., 19. Juni 2023, 20:36: On 19.06.2023 19:44, Ulrich Sibiller wrote: Hello, what exactly does "built to include networking sup

Re: Valid grub.conf locations

2023-06-19 Thread Andrei Borzenkov
9, 2023 at 4:06 PM Andrei Borzenkov wrote: On 19.06.2023 12:46, Ulrich Sibiller wrote: Hello, I am wondering where grub is supposed to look for grub.cfg when booted via PXE as grubx64.efi (or bootx64.efi)? Background: I have been playing around with running shredos (https://github.com/PartialVol

Re: Valid grub.conf locations

2023-06-19 Thread Andrei Borzenkov
On 19.06.2023 12:46, Ulrich Sibiller wrote: Hello, I am wondering where grub is supposed to look for grub.cfg when booted via PXE as grubx64.efi (or bootx64.efi)? Background: I have been playing around with running shredos (https://github.com/PartialVolume/shredos.x86_64) over the network via

Re: Negation in a condition triggers error message

2023-06-16 Thread Andrei Borzenkov
On 16.06.2023 03:21, Adam Vodopjan wrote: I'm on grub 2.06 in ubuntu 22.04 grub> [ a -gt 9 ]; echo $? 1 grub> [ ! a -gt 9 ]; echo $? error: unrecognized number. 0 grub> [ a -lt 9 ]; echo $? error: unrecognized number. 0 grub> [ ! a -lt 9 ]; echo $? 1 grub> [ a -eq 9 ]; echo $? 1 grub> [ ! a

Re: error: compression algorithm inherit not supported

2023-06-11 Thread Andrei Borzenkov
On 12.06.2023 02:42, Maurice R Volaski wrote: Yes, /dev/vda3 is zfs. I created a new VM identical to this affected one and the grub setup and installed just fine. It's only this specific VM where this error occurs. That is likely the configuration of your filesystem which sets inheritance

Re: error: compression algorithm inherit not supported

2023-06-11 Thread Andrei Borzenkov
On 11.06.2023 07:18, Maurice R Volaski via Support requests for the GRand Unified Bootloader wrote: I have similar VMs with differing behavior. On one, both grub-mkconfig and grub-install work flawlessly and on the other, they both error out with error: compression algorithm inherit not

Re: My grub installation is fail with nvme

2023-05-27 Thread Andrei Borzenkov
On 27.05.2023 20:56, Enmanuel E. Saravia wrote: Hi Grub Colleges, I have a modern laptop `ASUS ZenBook 13` `nvme` partition with `linux-libre` source[0], and my Grub source is[1], then, Too I was start my question here[2], then too ask to over email `lxo` `linux-libre` owner and I will quote

Re: GRUB search doesn't set btrfs subvolume

2023-03-11 Thread Andrei Borzenkov
On 11.03.2023 22:46, Lyubomir Parvanov wrote: And what is this search command? https://www.gnu.org/software/grub/manual/grub/html_node/search.html I know what grub search command is. You said "call to the search command in order to set the prefix environment variable. But as far as I

Re: GRUB search doesn't set btrfs subvolume

2023-03-10 Thread Andrei Borzenkov
On 11.03.2023 00:14, Lyubomir Parvanov wrote: Hello, I have the following btrfs subvolumes on my btrfs boot partition: sudo btrfs subvolume list /boot ID 256 gen 300 top level 5 path @boot ID 257 gen 301 top level 5 path @boot-snapshot ID 343 gen 285 top level 257 path

Re: Chainload grub to grub?

2023-03-06 Thread Andrei Borzenkov
On Mon, Mar 6, 2023 at 5:16 PM Michael Peters wrote: > > Hi. I'm trying to figure out how to chainload one grub to another. > > bios boot, not UEFI. > grub 2.06 built from source. > > What GNU/Linux identifies as /dev/sdc has a CentOS 7.9 install with its own > /boot at /dev/sdc1 and the

Re: Grub.cfg help request

2023-03-04 Thread Andrei Borzenkov
On 05.03.2023 00:26, shell...@posteo.de wrote: hello I've been trying to write a grub.cfg that does what I want, without having to patch the source code but I don't think it's doable. Can you advise ? here is the synopsis: if shift not pressed There is no generic way to do it. As extreme

Re: Converted MBR to GPT and menu is gone, can't use grub-reboot either

2023-02-18 Thread Andrei Borzenkov
On 18.02.2023 15:42, Pascal Hambourg wrote: As expected. An EFI boot loader cannot chainload a legacy boot loader. Theoretically it can. UEFI Specification defines BIOS Boot device path that could "enable platform firmware to select a legacy non-EFI OS as a boot option". Whether it is

Re: How to sign fonts?

2023-02-12 Thread Andrei Borzenkov
On 12.02.2023 17:18, Siddh Raman Pant wrote: I recently made a separate partition for /boot because I migrated my root to btrfs, and this has caused my grub theme to not show the correct font now. So I tried to load the font using loadfont on command line, which throws up "prohibited by secure

Re: Accessing boot menu when GRUB_TIMEOUT=0

2023-01-18 Thread Andrei Borzenkov
On Wed, Jan 18, 2023 at 1:03 PM AAA BBB wrote: > > Dear Andrei, > > thank you so much for your suggestions. > > I got it working by setting `GRUB_TIMEOUT_STYLE=hidden`. > > I confirm that SHIFT alone doesn't work, but SHIFT+F1 pressed before > booting up the system indeed shows the GRUB menu. > >

Re: Accessing boot menu when GRUB_TIMEOUT=0

2023-01-15 Thread Andrei Borzenkov
On 12.01.2023 09:28, AAA BBB wrote: Dear GRUBbers, how can I access the boot menu when GRUB_TIMEOUT=0? I have searched over the net but none of the proposals I found worked. This really depends on your grub version and distribution. Historically grub did not have any way to interrupt boot

Re: test from within grub.cfg if current boot is from legacy bios or UEFI

2022-11-20 Thread Andrei Borzenkov
On Mon, Nov 21, 2022 at 7:50 AM Dashi Cao wrote: > > Hello all, > Is there any variable in grub configuration that can tell if current > boot iis from legacy bios or UEFI? Yes, you can check the environment variable $grub_platform. It is "pc" for legacy BIOS and "efi" for UEFI.

Re: 100% CPU before LUKS password

2022-11-20 Thread Andrei Borzenkov
On 20.11.2022 13:23, Defiant wrote: I noticed this behavior too using my custom Xubuntu setup with GRUB folder located in the /boot folder inside the LUKS-encrypted ext4 rootfs partition. Grub was setup with GRUB_ENABLE_CRYPTODISK=y. The grub binary at /boot/efi/EFI/ubuntu/grubx64.efi seems to

Re: Grub and pxe boot

2022-11-17 Thread Andrei Borzenkov
On 17.11.2022 19:15, Patrick Begou wrote: Hi all, I look for a workaround for a network installation of some laptops, may be using grub. - the laptop is behind a dock station (U2723QE from DELL) which must do a pass through of my laptop nic mac address. - The PXE boot provides the right mac

Re: grub-uninstall

2022-11-08 Thread Andrei Borzenkov
On 08.11.2022 23:12, Pascal Hambourg wrote: Then you can wipe the boot image in the first 440 bytes of the MBR and preserve the partition table with dd if=/dev/zero of=/dev/sda count=1 bs=440 This leaves final 0x55aa signature which may fool BIOS into believing there still *is* boot

Re: Unable to use "case" command on Grub shell; getting syntax errors

2022-11-05 Thread Andrei Borzenkov
On 05.11.2022 04:21, x...@trimaso.com.mx wrote: Hello. Using Grub 2.06 I'm trying something simple like this: str1=abcdef; case $str1 in a*f) echo yes ;; esac But, regardless of how I split the command, I always get this errors: error: ../../grub-core/script/lexer.c:352:Syntax error error:

Re: Can grub2 password request be configured to provide visual keystroke feedback?

2022-09-18 Thread Andrei Borzenkov
On 18.09.2022 17:49, Jimmie Mayfield wrote: > > Is there an existing mechanism to tell grub to provide visual feedback > (a hashmark, a spinner that advances on each keystroke, etc) when a > password is being entered? No, it is not implemented.

Re: public key not being added to store

2022-08-13 Thread Andrei Borzenkov
On 12.08.2022 19:27, Akshath Hegde wrote: > Hi, > I'm trying to bring up ubuntu on qemu with secure boot enabled. I have > registered PK, KEK and db, and enabled secure boot option. > > In the initial grub.cfg file under ESP, I have set check_signatures to > enforce. This file is signed by my gpg

Re: grub cannot boot from ext4 on mmc ("unknown filesystem")

2022-07-19 Thread Andrei Borzenkov
On 18.07.2022 15:37, Andreas Ufert wrote: > Hi, > here's my setup: > > grub 2.06 > build with yocto/kirkstone > > grub (arch i386-pc) is installed on (hd0) (MBR) and (hd0,msdos1) (modules > and config) > kernel to bee booted resides on (hd0,msdos2) > > grub fails with "error: unknown

Re: Does GRUB2 support i2c/smbus communication?

2022-07-19 Thread Andrei Borzenkov
On 19.07.2022 13:59, Santhosh Nambiar wrote: > Hi Community, > I would like to know whether GRUB2 supports i2c/smbus communication or not. > I have a requirement in which an i2c device has to be accessed from GRUB in > an X86 based platform. > Appreciate any help you can provide. > Thank you.

Re: GRUB2 entries missing / misconfigured / etc?

2022-06-17 Thread Andrei Borzenkov
On 17.06.2022 22:58, ylluminate wrote: > Following an upgrade / cross-grade from CentOS 7 to AlmaLinux 8, I'm having > some trouble with the GRUB not being able to boot properly for lack of > finding / generating entries. I'm hoping to resolve and document this in > order to further help the

Re: change the title of a menuentry from within menuentry

2022-06-14 Thread Andrei Borzenkov
On 14.06.2022 12:46, Evgeny wrote: > Hello > > Is there a way to change the title of a menuentry from within menuentry > itself in grub? No. "menuentry" is a command which creates menu entry. Commands inside this menu entry are executed when you select it, at which point it is too late. > Or

Re: grub2 mdadm and default_layout , attempt to read or write outside of disk

2022-06-05 Thread Andrei Borzenkov
On 04.06.2022 23:57, Pascal Hambourg wrote: > Le 04/06/2022 à 20:29, Andrei Borzenkov a écrit : >> On 04.06.2022 20:46, Pascal Hambourg wrote: >>> >>> Also note that RAID0 layout is irrelevant when only one member is bigger >>> than the other(s). >>

Re: grub2 mdadm and default_layout , attempt to read or write outside of disk

2022-06-04 Thread Andrei Borzenkov
On 04.06.2022 20:46, Pascal Hambourg wrote: > > Also note that RAID0 layout is irrelevant when only one member is bigger > than the other(s). > grub will compute wrong logical block location for anything beyond common smallest disk size.

Re: grub2 mdadm and default_layout , attempt to read or write outside of disk

2022-06-04 Thread Andrei Borzenkov
On 04.06.2022 14:25, Darko Luketic wrote: > Hello, > > I have made a forum post at > https://bbs.archlinux.org/viewtopic.php?id=276955 if you'd like to read > that, but I'll repeat here. > > Essentially, I'm getting a > > |attempt to read or write outside of disk 'hd1'.| > || > ||when trying

Re: --class option

2022-05-10 Thread Andrei Borzenkov
On 10.05.2022 20:14, richard lucassen wrote: > Hello list, > > In grub.cfg these parameters appear at the menuitems stanza: > > --class debian --class gnu-linux --class gnu --class os > > This "debian, gnu-linux, gnu and os" where can I find what this is all > about? That's just tells what

Re: GRUB fails to trust built-in public key

2022-03-27 Thread Andrei Borzenkov
On 27.03.2022 14:00, lolock wrote: > Hello everyone > > I am trying to set up Secure boot on my Gentoo machine. I use > grub-mkstandalone to generate an image that is signed by a firmware key. > I then expect GRUB to verify my kernel with its detached signature, > using a public key I embedded

Re: azerty, fr or fr-pc keyboard layout with grub 2.06

2022-03-02 Thread Andrei Borzenkov
On 02.03.2022 19:33, Pascal wrote: > the file generated by the grub-kbdcomp command is finally functional : it > was me who did not modify terminal_input (as you point out, thanks). > > I encountered two difficulties when using it : > - I first used the terminal_input --append at_keyboard command

Re: grub works, but boot menu is gone and has an error message. [corrected]

2022-02-21 Thread Andrei Borzenkov
On 22.02.2022 00:17, John Griessen wrote: > > I've had this symptom for a while and cannot find much by searching for the > error message. > > During boot, when the grub menu usually would come up, I see > > error: can't find command 'exec' . Show your /boot/grub/grub.cfg > loading

Re: Grub on BIOS/GPT

2022-02-21 Thread Andrei Borzenkov
evice. > I'll try to hack on grub-bios-setup, to get it to not look at disks > and instead read the input file. Doubt I'll be successful, but my > initial plan of "just stomping the jump address of boot.img" did not > pan out > > > > On Mon, 21 Feb 2022 at 12:2

Re: Grub on BIOS/GPT

2022-02-21 Thread Andrei Borzenkov
On Mon, Feb 21, 2022 at 1:45 PM David Ventura wrote: > > The machines I'll boot support this, so it's fine. (And they'll only > ever boot Linux, so no need for hybrid MBR). > > Using grub-install also expects to read the device.map from my disk > and write to /boot/grub/i386-pc on my disk. > I

Re: Grub on BIOS/GPT

2022-02-20 Thread Andrei Borzenkov
On 21.02.2022 01:53, David Ventura wrote: > Hi > I'm trying to boot grub on a BIOS/GPT combination and am currently stuck. > I've created a test disk image with the following GPT partition (and > protective MBR): > > > Found valid GPT with protective MBR; using GPT. > Disk hdd-grub.raw: 131072

Re: Grub and secure boot

2022-02-05 Thread Andrei Borzenkov
On 05.02.2022 00:08, Domenico Panella wrote: > Hi all, > I have a problem with grub. > I have signed grub efi file with my efi keys > But I get this error : > > verifcation requested but nobody cares: (hd0,gpt7)/boot/grub/x86_64-efi > /normal.mod > Entering rescue mode... grub rescue> > > I

Re: grub-mkimage

2022-01-26 Thread Andrei Borzenkov
On 26.01.2022 12:34, Pascal wrote: > hi, > > thank you Andrei for taking the time to read and answer me. > > I try to reduce the space taken by GRUB as much as possible. > this way, I only have the bootloader and a basic configuration file : > > # ll -h /run/live/bootmnt/efi/boot/bootx64.efi >

Re: grub-mkimage

2022-01-25 Thread Andrei Borzenkov
nts of legacy BIOS, so what not simply have all modules? > Le mar. 25 janv. 2022 à 13:06, Andrei Borzenkov a > écrit : > >> On Tue, Jan 25, 2022 at 12:13 PM Pascal wrote: >>> >>> hi, >>> >>> first of all, a small precision which ca

Re: grub-mkimage

2022-01-25 Thread Andrei Borzenkov
s my live disk). > Well, (,gpt2) means "the second partition on the disk grub was loaded from". I doubt that grub magic to detect this disk will work with native drivers on UEFI (actually I am pretty sure it won't). nativedisk drivers were never intended for BIOS/UEFI systems. > r

  1   2   3   4   5   6   7   >