grub-devel
[Top][All Lists]
Advanced

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

Re: edif / create files from a grub module


From: Vladimir 'phcoder' Serbinenko
Subject: Re: edif / create files from a grub module
Date: Wed, 10 May 2017 22:13:41 +0000



On Sat, Dec 10, 2016, 18:29 Andrei Borzenkov <address@hidden> wrote:
07.12.2016 00:03, Jean-Francois Le Breton пишет:
> Hello,
>      I would like to add some checks and modifications to the Linux command line
> before booting the OS.
>      So I am considering writing a grub module which will modify some grub.cfg
> parameters according to data retreived somewhere on dedicated hardware.
>       I just realized that it was not possible to write files (on EFI partition
> or EXT4 partition).
>       Is there an available patch to allow file modifications ?
>       I am using grubx64.efi + my module.

There is no write support in GRUB nor am I aware of any plans to add
one.
This is not just lack of plans. Writing to FS structures is inherently dangerous abd may result in FS corruption. So for safety reasons we reject writes to FS except in very controlled ways.
The only limited possibility is overwriting of existing file using
blocklists as long as it resides on plain device (no RAID/volume
manager/crypto/etc).



_______________________________________________
Grub-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/grub-devel

reply via email to

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