Skip to content

Commit a279555

Browse files
authored
Merge pull request #1480 from cgwalters/composefs-prep-grub
Write nom parser for Grub menuentries
2 parents 735a0b0 + 3548a1d commit a279555

File tree

5 files changed

+535
-2
lines changed

5 files changed

+535
-2
lines changed

Cargo.lock

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/lib/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,20 @@ tini = "1.3.0"
5959
comfy-table = "7.1.1"
6060
thiserror = { workspace = true }
6161
canon-json = { workspace = true }
62+
nom = "8.0.0"
6263

6364
[dev-dependencies]
6465
similar-asserts = { workspace = true }
6566
static_assertions = { workspace = true }
6667

6768
[features]
68-
default = ["install-to-disk"]
69+
default = ["install-to-disk", "grub"]
6970
# This feature enables `bootc install to-disk`, which is considered just a "demo"
7071
# or reference installer; we expect most nontrivial use cases to be using
7172
# `bootc install to-filesystem`.
7273
install-to-disk = []
74+
# Enable direct support for the GRUB bootloader
75+
grub = []
7376
# This featuares enables `bootc internals publish-rhsm-facts` to integrate with
7477
# Red Hat Subscription Manager
7578
rhsm = []

crates/lib/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ mod containerenv;
3636
mod install;
3737
mod kernel;
3838

39+
#[cfg(feature = "grub")]
40+
pub(crate) mod parsers;
3941
#[cfg(feature = "rhsm")]
4042
mod rhsm;
4143

0 commit comments

Comments
 (0)