From: "Dr. Tilmann Bubeck" <tilmann@bubecks.de>
To: grub-devel@gnu.org
Subject: Idea: Improve ext2 to allow for embedding
Date: Wed, 13 Mar 2024 11:21:42 +0100 [thread overview]
Message-ID: <2a08b8f7e4fb763953d789e2836977d9@bubecks.de> (raw)
I would like to propose a change to GRUB to allow embedding (fs_embed)
of core.img for ext2/3/4 into the
filesystem. This allows the installation of GRUB into ext2 without the
need to use (unsafe) block lists.
It will be realized using the ioctl(EXT4_IOC_SWAP_BOOT) introduced into
Linux 3.10 in 2013. This ioctl basically swaps the data blocks of the
associated file with the EXT2_BOOT_LOADER_INO inode. After using the
ioctl the code of core.img is stored in the BOOT_LOADER incode of the
filesystem and it is not accessible to file system tools anymore. This
ensures, that the boot code is safe and installation into a partition is
possible.
What would you think about this proposal. Are you willing to integrate
this, if I develop this for GRUB?
Changes will be done mainly in setup.c and ext2.c
Kind regards
Tilmann Bubeck
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
next reply other threads:[~2024-03-13 10:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-13 10:21 Dr. Tilmann Bubeck [this message]
2024-03-13 10:25 ` Idea: Improve ext2 to allow for embedding Mate Kukri
2024-03-13 10:39 ` Pascal Hambourg
2024-03-13 15:18 ` Dr. Tilmann Bubeck
2024-03-13 15:31 ` Pascal Hambourg
2024-03-13 18:23 ` Dr. Tilmann Bubeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2a08b8f7e4fb763953d789e2836977d9@bubecks.de \
--to=tilmann@bubecks.de \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).