how to modify the cores grub config?

787 views
Skip to first unread message

姜焘

unread,
Oct 16, 2015, 4:14:22 AM10/16/15
to CoreOS User
hello all:
    i just want to insmod some module before the os boot success.can somebody give me some help ??????

   thanks

姜焘

unread,
Oct 16, 2015, 6:56:04 AM10/16/15
to CoreOS User
oh, i have the way to solve.
ref:

kyle....@coreos.com

unread,
Oct 16, 2015, 7:10:17 PM10/16/15
to CoreOS User
You can also edit the grub.cfg file like so:

mount /dev/sda6 /boot
vim /boot/grub.cfg

Alex Crawford

unread,
Oct 16, 2015, 7:42:35 PM10/16/15
to kyle....@coreos.com, CoreOS User
On 10/16, kyle....@coreos.com wrote:
> You can also edit the grub.cfg file like so:
>
> mount /dev/sda6 /boot
> vim /boot/grub.cfg

It may be preferable to modify the grub.cfg in the OEM config partition
instead. This file is located at /usr/share/oem/grub.cfg (you'll need to
remount /usr/share/oem read-write before modifying). You can use the
following to append items to the kernel's boot parameters:

set linux_append=""

-Alex
signature.asc

Michael Marineau

unread,
Oct 16, 2015, 8:51:51 PM10/16/15
to Alex Crawford, Kyle Brown, CoreOS User
On Fri, Oct 16, 2015 at 4:42 PM, Alex Crawford <alex.c...@coreos.com> wrote:
> On 10/16, kyle....@coreos.com wrote:
>> You can also edit the grub.cfg file like so:
>>
>> mount /dev/sda6 /boot
>> vim /boot/grub.cfg
>
> It may be preferable to modify the grub.cfg in the OEM config partition

sda6 is the OEM partition ;-)

So if the system is up and running the mount step is not needed, it is
already mounted to /usr/share/oem, mounting it to boot was misleading.

In fact this is currently the *only* way to hook into the GRUB config
because the main config is embedded in the GRUB binary itself in
preparation for secure boot when we don't want GRUB to load anything
from disk other than the kernel.

> instead. This file is located at /usr/share/oem/grub.cfg (you'll need to
> remount /usr/share/oem read-write before modifying). You can use the
> following to append items to the kernel's boot parameters:
>
> set linux_append=""
>
> -Alex
>
> --
> You received this message because you are subscribed to the Google Groups "CoreOS User" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to coreos-user...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages