lumine
UEFI x86_64 bootloader for linux kernel images
src/Config.zig
483 bytes raw
1const std = @import("std");
2const Io = std.Io;
3
4pub const Path = union(enum) {
5 /// file in boot partition
6 boot: []const u8,
7
8 pub fn format(self: Path, w: *Io.Writer) !void {
9 switch (self) {
10 // limine mention :(
11 .boot => |path| try w.print("boot():{s}", .{path}),
12 }
13 }
14};
15
16pub const BootOption = union(enum) {
17 linux: struct {
18 kernel_path: Path,
19 kernel_cmdline: []const u8 = &.{},
20 },
21};
22
23boot: BootOption,