help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: John Groves
Subject: Re: GRUB_CMDLINE_LINUX="... memmap=8G$8G"
Date: Thu, 21 Dec 2023 22:23:28 -0600

Thanks for the reply Randy!

No luck so far, but here is what I tried:

COMMON="BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.5.12+ root=/dev/mapper/fedora-root
ro rd.lvm.lv=fedora/root"

Test 1:
    /etc/default/grub:
    GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/root memmap=8G!8G"

    journalctl -k:
    Command line: $COMMON memmap=8G!8G

Test 2: (double quotes and un-escaped '$')
    /etc/default/grub:
    GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/root memmap=8G$8G"

    journalctl -k:
    Command line: $COMMON memmap=8GG

Test 3: (single-quotes and un-escaped '$')
    /etc/default/grub:
    GRUB_CMDLINE_LINUX='rd.lvm.lv=fedora/root memmap=8G$8G'

    journallctl -k:
    Command line: $COMMON memmap=8G

Test 4: (single quotes and escaped '$')
    /etc/default/grub:
    GRUB_CMDLINE_LINUX='rd.lvm.lv=fedora/root memmap=8G\$8G'

    journalctl -k:
    Command line: $COMMON memmap=8G

Test 5: (single quotes and double-escaped '$')
    /etc/default/grub:
    GRUB_CMDLINE_LINUX='rd.lvm.lv=fedora/root memmap=8G\\\$8G'

    journalctl -k:
    System panicked during boot. See attached screen grab image
[image: Screenshot 2023-12-21 at 10.20.37 PM.png]

An further suggestions?

Thank you!
John Groves


On Thu, Dec 21, 2023 at 8:40 PM Randy Goldenberg <randy.goldenberg@gmail.com>
wrote:

> Try:
>
> GRUB_CMDLINE_LINUX='memmap=8G\$8G'
>
> https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/448413
>
> On Thu, Dec 21, 2023 at 5:54 PM John Groves <John@groves.net> wrote:
>
>> I'm trying and failing to get "memmap=8G$8G" passed to the kernel on its
>> command line.
>>
>> I have a vague ancient recollection of needing to do "memmap=8G\\\$8G, but
>> it's not working now. I've tried lots of escape combinations but no luck.
>>
>> I've even put "memmap=8G!8G" in /etc/default/grub, run grub2-mkconfig, and
>> then used hexedit on /boot/efi/EFI/fedora/grub.cfg to change the '!' to
>> '$', but STILL the kernel sees the '!'
>>
>> Is this a bug or regression in grub2? I hope I'm just overlooking
>> something
>> obvious.
>>
>> Please help!
>>
>> $ rpm -qa | grep grub
>> grubby-8.40-72.fc39.x86_64
>> grub2-common-2.06-109.fc39.noarch
>> grub2-pc-modules-2.06-109.fc39.noarch
>> grub2-tools-minimal-2.06-109.fc39.x86_64
>> grub2-tools-2.06-109.fc39.x86_64
>> grub2-pc-2.06-109.fc39.x86_64
>>
>> Thank you,
>> John Groves
>>
>

PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]