Skip to content

Commit

Permalink
pkg/boot/grub: Add multiboot2 and module2 grub keywords
Browse files Browse the repository at this point in the history
Signed-off-by: Shelly Chang <[email protected]>
  • Loading branch information
ShellyChang110 authored and rminnich committed May 3, 2023
1 parent 5a78f81 commit 9cea162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/boot/grub/grub.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ func (c *parser) append(ctx context.Context, config string) error {
e.Initrd = i
}

case "multiboot":
case "multiboot", "multiboot2":
// TODO handle --quirk-* arguments ? (change parsing)
k, err := c.getFile(arg)
if err != nil {
Expand All @@ -509,7 +509,7 @@ func (c *parser) append(ctx context.Context, config string) error {
c.mbEntries[c.curEntry] = entry
c.mbEntries[c.curLabel] = entry

case "module":
case "module", "module2":
// TODO handle --nounzip arguments ? (change parsing)
if e, ok := c.mbEntries[c.curEntry]; ok {
// The only allowed arg
Expand Down

0 comments on commit 9cea162

Please sign in to comment.